diff options
-rw-r--r-- | source/blender/editors/include/BIF_glutil.h | 1 | ||||
-rw-r--r-- | source/blender/editors/screen/glutil.c | 15 | ||||
-rw-r--r-- | source/blender/gpu/GPU_state.h | 1 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_state.c | 10 |
4 files changed, 0 insertions, 27 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)) diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index c43a1711528..eb273608a3f 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -45,7 +45,6 @@ void GPU_depth_range(float near, float far); void GPU_depth_test(bool enable); bool GPU_depth_test_enabled(void); void GPU_line_smooth(bool enable); -void GPU_line_stipple(bool enable); void GPU_line_width(float width); void GPU_point_size(float size); void GPU_polygon_smooth(bool enable); diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index 98f905cd051..b77fc047473 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -100,16 +100,6 @@ void GPU_line_smooth(bool enable) } } -void GPU_line_stipple(bool enable) -{ - if (enable) { - glEnable(GL_LINE_STIPPLE); - } - else { - glDisable(GL_LINE_STIPPLE); - } -} - void GPU_line_width(float width) { float max_size = GPU_max_line_width(); |