diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-05-08 01:31:20 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-09 21:49:48 +0200 |
commit | 0730bd620c5c7ad5410ca0e5bb26db2ae2db77b5 (patch) | |
tree | 8284a654c50d5c159747ae0bbbc09842c9ac254f /Userland/Libraries | |
parent | e34e46ebb3987872917486c6a7c9323a1d852861 (diff) | |
download | serenity-0730bd620c5c7ad5410ca0e5bb26db2ae2db77b5.zip |
LibGL: Alphabetize `GL_LIGHT*` cases in `gl_enable()`
No functional changes.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGL/ContextParameter.cpp | 22 |
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: |