use GL_COLOR_TABLE_FORMAT instead of

GL_COLOR_TABLE_FORMAT_EXT; it's defined in glext.h

(we could enable this if the imaging subset is defined, too, but checking
for the extension version is probably good enough)
This commit is contained in:
Glenn Maynard
2003-02-20 02:25:10 +00:00
parent 12d7b433e4
commit 719d8f6b4e
+1 -1
View File
@@ -347,7 +347,7 @@ retry:
GLExt::glColorTableEXT(GL_TEXTURE_2D, GL_RGBA8, 256, GL_RGBA, GL_UNSIGNED_BYTE, palette);
int RealFormat = 0;
GLExt::glGetColorTableParameterivEXT(GL_TEXTURE_2D, GL_COLOR_TABLE_FORMAT_EXT, &RealFormat);
GLExt::glGetColorTableParameterivEXT(GL_TEXTURE_2D, GL_COLOR_TABLE_FORMAT, &RealFormat);
if(RealFormat != GL_RGBA8)
{
/* This is a case I don't expect to happen; if it does, log,