OpenGL: fix color logic op
GL_LOGIC_OP is a synonym for GL_INDEX_LOGIC_OP, from OpenGL 1.0's indexed color drawing. It's not part of modern GL and causes an error in core profile. GL_COLOR_LOGIC_OP is still supported in the latest GL. It's the last stage before writing to the framebuffer. Part of T51164
This commit is contained in:
@@ -2271,7 +2271,7 @@ void GPU_state_init(void)
|
||||
glDisable(GL_ALPHA_TEST);
|
||||
glDisable(GL_BLEND);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
glDisable(GL_LOGIC_OP);
|
||||
glDisable(GL_COLOR_LOGIC_OP);
|
||||
glDisable(GL_STENCIL_TEST);
|
||||
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user