diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-09-08 16:12:50 +0200 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-09-08 12:05:54 -0400 |
commit | 08204efe1fcce4b077759e998c46bb2f5f5cce7f (patch) | |
tree | cf9eb373dc5a69440e57e537413e471a11f0be26 /Userland | |
parent | 7ba6eb37fc315ea00c0017f578f84aaf749c7044 (diff) | |
download | serenity-08204efe1fcce4b077759e998c46bb2f5f5cce7f.zip |
LibGL: Set correct color material mode for `GL_AMBIENT_AND_DIFFUSE`
This was a silly mistake :^)
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGL/Lighting.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGL/Lighting.cpp b/Userland/Libraries/LibGL/Lighting.cpp index f79f3e17bf..13dd3f7401 100644 --- a/Userland/Libraries/LibGL/Lighting.cpp +++ b/Userland/Libraries/LibGL/Lighting.cpp @@ -510,8 +510,7 @@ void GLContext::sync_light_state() options.color_material_mode = GPU::ColorMaterialMode::Ambient; break; case GL_AMBIENT_AND_DIFFUSE: - options.color_material_mode = GPU::ColorMaterialMode::Ambient; - options.color_material_mode = GPU::ColorMaterialMode::Diffuse; + options.color_material_mode = GPU::ColorMaterialMode::AmbientAndDiffuse; break; case GL_DIFFUSE: options.color_material_mode = GPU::ColorMaterialMode::Diffuse; |