GPU: Remove unused and deprecated GPU_line_stipple()

This commit is contained in:
2019-03-23 23:42:30 +01:00
parent 0f8da4f014
commit ee5e7a006e
4 changed files with 0 additions and 27 deletions

View File

@@ -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);

View File

@@ -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))

View File

@@ -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);

View File

@@ -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();