1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibGL: Set correct color material mode for GL_AMBIENT_AND_DIFFUSE

This was a silly mistake :^)
This commit is contained in:
Jelle Raaijmakers 2022-09-08 16:12:50 +02:00 committed by Tim Flynn
parent 7ba6eb37fc
commit 08204efe1f

View file

@ -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;