er, no, this one

This commit is contained in:
Glenn Maynard
2003-02-15 00:15:26 +00:00
parent 3f2c342b26
commit 6b27cd5b58
+2 -2
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, GLenum(GL_COLOR_TABLE_FORMAT_EXT), &RealFormat);
GLExt::glGetColorTableParameterivEXT(GL_TEXTURE_2D, GL_COLOR_TABLE_FORMAT_EXT, &RealFormat);
if(RealFormat != GL_RGBA8)
{
/* This is a case I don't expect to happen; if it does, log,
@@ -368,7 +368,7 @@ retry:
if(img->format->BitsPerPixel == 8)
{
int size;
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GL_TEXTURE_INDEX_SIZE_EXT, &size);
glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, GLenum(GL_TEXTURE_INDEX_SIZE_EXT), &size);
if(size != 8)
{
/* I don't know any reason this should actually fail (paletted textures