Fixed whatever problem was with texture loading.
This commit is contained in:
@@ -88,6 +88,7 @@ errorret_t displayInit(void) {
|
||||
#else
|
||||
GLint mask = 0;
|
||||
glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &mask);
|
||||
DISPLAY.usingShaderedPalettes = true;
|
||||
if(mask & GL_CONTEXT_CORE_PROFILE_BIT) {
|
||||
GLint numExtens = 0;
|
||||
glGetIntegerv(GL_NUM_EXTENSIONS, &numExtens);
|
||||
@@ -100,7 +101,7 @@ errorret_t displayInit(void) {
|
||||
}
|
||||
} else {
|
||||
const char* ext = (const char*)glGetString(GL_EXTENSIONS);
|
||||
DISPLAY.usingShaderedPalettes = (
|
||||
DISPLAY.usingShaderedPalettes = !(
|
||||
ext && strstr(ext, "GL_EXT_paletted_texture")
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user