summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-09 23:01:19 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-09 23:23:01 +0100
commit57b1dcbec9d18344dc0f2f12a939ed4d24b6ca0b (patch)
treed97953fe5556669d22569a32910e590ff3a42d2d /Userland
parent6e64ad829a977d4072eef6b96f7c2b88bf00c61c (diff)
downloadserenity-57b1dcbec9d18344dc0f2f12a939ed4d24b6ca0b.zip
LibGL: Add stub for `glColorMaterial`
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h1
-rw-r--r--Userland/Libraries/LibGL/GLLights.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index fa03be7797..4b28fd927f 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -461,6 +461,7 @@ GLAPI void glColor4fv(const GLfloat* v);
GLAPI void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
GLAPI void glColor4ubv(const GLubyte* v);
GLAPI void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+GLAPI void glColorMaterial(GLenum face, GLenum mode);
GLAPI void glDeleteTextures(GLsizei n, const GLuint* textures);
GLAPI void glEnd();
GLAPI void glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearVal, GLdouble farVal);
diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp
index 436cd1e6fe..70d0c777db 100644
--- a/Userland/Libraries/LibGL/GLLights.cpp
+++ b/Userland/Libraries/LibGL/GLLights.cpp
@@ -11,6 +11,12 @@
extern GL::GLContext* g_gl_context;
+void glColorMaterial(GLenum face, GLenum mode)
+{
+ // FIXME: implement
+ dbgln_if(GL_DEBUG, "glColorMaterial({:#x}, {:#x}): unimplemented", face, mode);
+}
+
void glLightf(GLenum light, GLenum pname, GLfloat param)
{
// FIXME: implement