summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibGL/ContextParameter.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Userland/Libraries/LibGL/ContextParameter.cpp b/Userland/Libraries/LibGL/ContextParameter.cpp
index 758760de58..3b0fd5c7ad 100644
--- a/Userland/Libraries/LibGL/ContextParameter.cpp
+++ b/Userland/Libraries/LibGL/ContextParameter.cpp
@@ -327,6 +327,17 @@ void GLContext::gl_enable(GLenum capability)
rasterizer_options.lighting_enabled = true;
update_rasterizer_options = true;
break;
+ case GL_LIGHT0:
+ case GL_LIGHT1:
+ case GL_LIGHT2:
+ case GL_LIGHT3:
+ case GL_LIGHT4:
+ case GL_LIGHT5:
+ case GL_LIGHT6:
+ case GL_LIGHT7:
+ m_light_states.at(capability - GL_LIGHT0).is_enabled = true;
+ m_light_state_is_dirty = true;
+ break;
case GL_NORMALIZE:
m_normalize = true;
rasterizer_options.normalization_enabled = true;
@@ -362,17 +373,6 @@ void GLContext::gl_enable(GLenum capability)
m_active_texture_unit->set_texture_cube_map_enabled(true);
m_sampler_config_is_dirty = true;
break;
- case GL_LIGHT0:
- case GL_LIGHT1:
- case GL_LIGHT2:
- case GL_LIGHT3:
- case GL_LIGHT4:
- case GL_LIGHT5:
- case GL_LIGHT6:
- case GL_LIGHT7:
- m_light_states.at(capability - GL_LIGHT0).is_enabled = true;
- m_light_state_is_dirty = true;
- break;
case GL_TEXTURE_GEN_Q:
case GL_TEXTURE_GEN_R:
case GL_TEXTURE_GEN_S: