mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibGL: Dereference pointer in a consistent way for glMaterial*
This commit is contained in:
parent
7c4bbdc398
commit
6d68f47495
Notes:
sideshowbarker
2024-07-17 02:57:44 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/6d68f47495 Pull-request: https://github.com/SerenityOS/serenity/pull/16543 Issue: https://github.com/SerenityOS/serenity/issues/15814 Reviewed-by: https://github.com/FalseHonesty Reviewed-by: https://github.com/sunverwerth ✅
1 changed files with 1 additions and 1 deletions
|
@ -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] };
|
||||
|
|
Loading…
Add table
Reference in a new issue