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
Notes: sideshowbarker 2024-07-17 07:21:08 +09:00

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;