From 7368f5c290edde1c8889ee2c3edaca5404171249 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Mon, 25 Feb 2019 08:25:21 +0000 Subject: [PATCH] Add GL_SHARED_TEXTURE_PALETTE_EXT as a valid target to glColorTableEXT. Fixes #27 --- GL/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GL/texture.c b/GL/texture.c index d0219e4..44711af 100644 --- a/GL/texture.c +++ b/GL/texture.c @@ -921,7 +921,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { } GLAPI void APIENTRY glColorTableEXT(GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *data) { - GLenum validTargets[] = {GL_TEXTURE_2D, 0}; + GLenum validTargets[] = {GL_TEXTURE_2D, GL_SHARED_TEXTURE_PALETTE_EXT, 0}; GLenum validInternalFormats[] = {GL_RGB8, GL_RGBA8, 0}; GLenum validFormats[] = {GL_RGB, GL_RGBA, 0}; GLenum validTypes[] = {GL_UNSIGNED_BYTE, GL_BYTE, GL_UNSIGNED_SHORT, GL_SHORT, 0};