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:
@@ -347,7 +347,7 @@ retry:
|
|||||||
GLExt::glColorTableEXT(GL_TEXTURE_2D, GL_RGBA8, 256, GL_RGBA, GL_UNSIGNED_BYTE, palette);
|
GLExt::glColorTableEXT(GL_TEXTURE_2D, GL_RGBA8, 256, GL_RGBA, GL_UNSIGNED_BYTE, palette);
|
||||||
|
|
||||||
int RealFormat = 0;
|
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)
|
if(RealFormat != GL_RGBA8)
|
||||||
{
|
{
|
||||||
/* This is a case I don't expect to happen; if it does, log,
|
/* This is a case I don't expect to happen; if it does, log,
|
||||||
|
|||||||
Reference in New Issue
Block a user