summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/Lighting.cpp
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-12-08 12:51:59 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-20 10:42:31 +0100
commit6d68f474953f7da24ff5a16a9069182ae2b0628f (patch)
treebb180073b1237c056cc69412564fc9d8466c794b /Userland/Libraries/LibGL/Lighting.cpp
parent7c4bbdc3983da3ef32fb09ad0491c63a0a4ca1d7 (diff)
downloadserenity-6d68f474953f7da24ff5a16a9069182ae2b0628f.zip
LibGL: Dereference pointer in a consistent way for `glMaterial*`
Diffstat (limited to 'Userland/Libraries/LibGL/Lighting.cpp')
-rw-r--r--Userland/Libraries/LibGL/Lighting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/Lighting.cpp b/Userland/Libraries/LibGL/Lighting.cpp
index 9c24b7834f..97eb0f4894 100644
--- a/Userland/Libraries/LibGL/Lighting.cpp
+++ b/Userland/Libraries/LibGL/Lighting.cpp
@@ -399,7 +399,7 @@ void GLContext::gl_materialfv(GLenum face, GLenum pname, GLfloat const* params)
material.emissive = { params[0], params[1], params[2], params[3] };
break;
case GL_SHININESS:
- material.shininess = *params;
+ material.shininess = params[0];
break;
case GL_AMBIENT_AND_DIFFUSE:
material.ambient = { params[0], params[1], params[2], params[3] };