diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-12-08 12:51:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-20 10:42:31 +0100 |
commit | 6d68f474953f7da24ff5a16a9069182ae2b0628f (patch) | |
tree | bb180073b1237c056cc69412564fc9d8466c794b /Userland/Libraries/LibGL/Lighting.cpp | |
parent | 7c4bbdc3983da3ef32fb09ad0491c63a0a4ca1d7 (diff) | |
download | serenity-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.cpp | 2 |
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] }; |