glo_check_extension would always return true

This commit is contained in:
espes 2015-09-08 09:37:52 +10:00
parent 4b5ff257f3
commit 6cfc0f518e
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ bool glo_check_extension(const char* ext_name)
for (i=0; i<num_extensions; i++) {
const char* ext = (const char*)glGetStringi(GL_EXTENSIONS, i);
if (!ext) break;
if (strcmp(ext, ext_name)) return true;
if (strcmp(ext, ext_name) == 0) return true;
}
return false;
}