Fix GPU logical error changing stipple

This commit is contained in:
2016-06-10 06:21:34 +10:00
parent a5788a9c47
commit b07508a362

View File

@@ -502,11 +502,12 @@ void GPU_basic_shader_bind(int options)
else if ((bound_options & GPU_SHADER_LINE) && (bound_options & GPU_SHADER_STIPPLE)) {
glDisable(GL_LINE_STIPPLE);
}
else {
if (options & GPU_SHADER_STIPPLE)
glEnable(GL_POLYGON_STIPPLE);
else if (bound_options & GPU_SHADER_STIPPLE)
glDisable(GL_POLYGON_STIPPLE);
if (((options & GPU_SHADER_LINE) == 0) && (options & GPU_SHADER_STIPPLE)) {
glEnable(GL_POLYGON_STIPPLE);
}
else if (((bound_options & GPU_SHADER_LINE) == 0) && (bound_options & GPU_SHADER_STIPPLE)) {
glDisable(GL_POLYGON_STIPPLE);
}
if (options & GPU_SHADER_FLAT_NORMAL) {