Adapted Nvidia hack for OSX; it checks for the gl string more narrow, to

also include othe 6800 card types. (reported in tracker)

Still no real clue if this is OK for release... stupid driver bugs!
This commit is contained in:
Ton Roosendaal 2005-04-24 18:09:54 +00:00
parent d8f23c8d3c
commit d40ba55c8c

@ -76,7 +76,8 @@ static int is_a_really_crappy_nvidia_card(void) {
/* Do you understand the implication? Do you? */
if (well_is_it==-1) {
well_is_it= (strcmp(glGetString(GL_RENDERER), "NVIDIA GeForce 6800 GT OpenGL Engine") == 0);
well_is_it= (strncmp(glGetString(GL_RENDERER), "NVIDIA GeForce 6800", 18) == 0);
printf("Is patched: %d\n", well_is_it);
}
return well_is_it;
}