GPU: Remove unused and deprecated GPU_line_stipple()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user