Fix broken by D1880 line stipple deactivation
This commit is contained in:
@@ -442,11 +442,11 @@ void GPU_basic_shader_bind(int options)
|
|||||||
glDisable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options & GPU_SHADER_LINE) {
|
if ((options & GPU_SHADER_LINE) && (options & GPU_SHADER_STIPPLE)) {
|
||||||
if (options & GPU_SHADER_STIPPLE)
|
glEnable(GL_LINE_STIPPLE);
|
||||||
glEnable(GL_LINE_STIPPLE);
|
}
|
||||||
else if (bound_options & GPU_SHADER_STIPPLE)
|
else if ((bound_options & GPU_SHADER_LINE) && (bound_options & GPU_SHADER_STIPPLE)) {
|
||||||
glDisable(GL_LINE_STIPPLE);
|
glDisable(GL_LINE_STIPPLE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (options & GPU_SHADER_STIPPLE)
|
if (options & GPU_SHADER_STIPPLE)
|
||||||
|
|||||||
Reference in New Issue
Block a user