From 0730bd620c5c7ad5410ca0e5bb26db2ae2db77b5 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 8 May 2022 01:31:20 +0200 Subject: [PATCH] LibGL: Alphabetize `GL_LIGHT*` cases in `gl_enable()` No functional changes. --- Userland/Libraries/LibGL/ContextParameter.cpp | 22 +++++++++---------- 1 file 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: