er, no, this one
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, GLenum(GL_COLOR_TABLE_FORMAT_EXT), &RealFormat);
|
GLExt::glGetColorTableParameterivEXT(GL_TEXTURE_2D, GL_COLOR_TABLE_FORMAT_EXT, &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,
|
||||||
@@ -368,7 +368,7 @@ retry:
|
|||||||
if(img->format->BitsPerPixel == 8)
|
if(img->format->BitsPerPixel == 8)
|
||||||
{
|
{
|
||||||
int size;
|
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)
|
if(size != 8)
|
||||||
{
|
{
|
||||||
/* I don't know any reason this should actually fail (paletted textures
|
/* I don't know any reason this should actually fail (paletted textures
|
||||||
|
|||||||
Reference in New Issue
Block a user