diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 01:42:30 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 01:42:30 +0300 |
commit | ee5e7a006e7134bad6534abe331c6f9310380337 (patch) | |
tree | 8ff3626e992c7e836f8b4ac09b4598b1abca8024 /source/blender/editors | |
parent | 0f8da4f014aafee5dbf4de927b372f125a847b67 (diff) |
GPU: Remove unused and deprecated GPU_line_stipple()
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 1 | ||||
-rw-r--r-- | source/blender/editors/screen/glutil.c | 15 |
2 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index 35e04106f31..9cb308d5145 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -103,7 +103,6 @@ void immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState *state, float xzoom, float yzoom, float color[4]); void set_inverted_drawing(int enable); -void setlinestyle(int nr); /* own working polygon offset */ float bglPolygonOffsetCalc(const float winmat[16], float viewdist, float dist); diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index c96b7f04284..230d6179871 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -48,21 +48,6 @@ /* ******************************************** */ -void setlinestyle(int nr) -{ - if (nr == 0) { - GPU_line_stipple(false); - } - else { - - GPU_line_stipple(true); - if (U.pixelsize > 1.0f) - glLineStipple(nr, 0xCCCC); - else - glLineStipple(nr, 0xAAAA); - } -} - /* Invert line handling */ #define GL_TOGGLE(mode, onoff) (((onoff) ? glEnable : glDisable)(mode)) |