summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLLights.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGL/GLLights.cpp')
-rw-r--r--Userland/Libraries/LibGL/GLLights.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp
index 78b9050019..cb80bc8590 100644
--- a/Userland/Libraries/LibGL/GLLights.cpp
+++ b/Userland/Libraries/LibGL/GLLights.cpp
@@ -43,6 +43,18 @@ void glLightModelfv(GLenum pname, GLfloat const* params)
}
}
+void glLightModeliv(GLenum pname, GLint const* params)
+{
+ switch (pname) {
+ case GL_LIGHT_MODEL_AMBIENT:
+ g_gl_context->gl_light_model(pname, params[0], params[1], params[2], params[3]);
+ break;
+ default:
+ g_gl_context->gl_light_model(pname, params[0], 0.0f, 0.0f, 0.0f);
+ break;
+ }
+}
+
void glLightModeli(GLenum pname, GLint param)
{
g_gl_context->gl_light_model(pname, param, 0.0f, 0.0f, 0.0f);