Ver código fonte

LibGL: Update rasterizer options in glDisable()

This bug must have been introduced by copy-pasting.
Stephan Unverwerth 4 anos atrás
pai
commit
9334697c59
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Userland/Libraries/LibGL/SoftwareGLContext.cpp

+ 2 - 2
Userland/Libraries/LibGL/SoftwareGLContext.cpp

@@ -667,12 +667,12 @@ void SoftwareGLContext::gl_disable(GLenum capability)
     case GL_BLEND:
         m_blend_enabled = false;
         rasterizer_options.enable_blending = false;
-        update_rasterizer_options = false;
+        update_rasterizer_options = true;
         break;
     case GL_ALPHA_TEST:
         m_alpha_test_enabled = false;
         rasterizer_options.enable_alpha_test = false;
-        update_rasterizer_options = false;
+        update_rasterizer_options = true;
         break;
     default:
         RETURN_WITH_ERROR_IF(true, GL_INVALID_ENUM);