From e68c051991c43eeb2fdaacc7638dccda64b48cde Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sat, 15 Sep 2018 11:42:42 +0100 Subject: [PATCH] Add missing glColorMaterial definition --- GL/lighting.c | 2 +- include/gl.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GL/lighting.c b/GL/lighting.c index d52d3f1..3f88ddd 100644 --- a/GL/lighting.c +++ b/GL/lighting.c @@ -223,7 +223,7 @@ void APIENTRY glMaterialfv(GLenum face, GLenum pname, const GLfloat *params) { } } -void glColorMaterial(GLenum face, GLenum mode) { +void APIENTRY glColorMaterial(GLenum face, GLenum mode) { if(face != GL_FRONT_AND_BACK) { _glKosThrowError(GL_INVALID_ENUM, __func__); _glKosPrintError(); diff --git a/include/gl.h b/include/gl.h index 9ad9be1..1b94cdc 100644 --- a/include/gl.h +++ b/include/gl.h @@ -590,6 +590,7 @@ GLAPI void APIENTRY glLightModeliv(GLenum pname, const GLint *params); GLAPI void APIENTRY glMateriali(GLenum face, GLenum pname, const GLint param); GLAPI void APIENTRY glMaterialf(GLenum face, GLenum pname, const GLfloat param); GLAPI void APIENTRY glMaterialfv(GLenum face, GLenum pname, const GLfloat *params); +GLAPI void APIENTRY glColorMaterial(GLenum face, GLenum mode); /* glGet Functions */ GLAPI void APIENTRY glGetBooleanv(GLenum pname, GLboolean* params);