mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibGL: Alphabetize GL_LIGHT*
cases in gl_enable()
No functional changes.
This commit is contained in:
parent
e34e46ebb3
commit
0730bd620c
Notes:
sideshowbarker
2024-07-17 11:06:58 +09:00
Author: https://github.com/gmta
Commit: 0730bd620c
Pull-request: https://github.com/SerenityOS/serenity/pull/13970
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 11 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue