fix questionable bug

This commit is contained in:
aap 2021-01-29 14:06:24 +01:00
parent 60a5ace163
commit a4df4d8b5d
1 changed files with 2 additions and 0 deletions

View File

@ -1785,6 +1785,8 @@ initOpenGL(void)
glGetIntegerv(GL_NUM_EXTENSIONS, &numExt); glGetIntegerv(GL_NUM_EXTENSIONS, &numExt);
for(int i = 0; i < numExt; i++){ for(int i = 0; i < numExt; i++){
const char *ext = (const char*)glGetStringi(GL_EXTENSIONS, i); const char *ext = (const char*)glGetStringi(GL_EXTENSIONS, i);
if(ext == nil)
continue; // apparently that can happen...
if(strcmp(ext, "GL_EXT_texture_compression_s3tc") == 0) if(strcmp(ext, "GL_EXT_texture_compression_s3tc") == 0)
gl3Caps.dxtSupported = true; gl3Caps.dxtSupported = true;
else if(strcmp(ext, "GL_KHR_texture_compression_astc_ldr") == 0) else if(strcmp(ext, "GL_KHR_texture_compression_astc_ldr") == 0)