Yabause / yabause

Yabause is a Sega Saturn emulator.
http://yabause.org
352 stars 194 forks source link

OpenGL: Fix potential segmentation fault from calling strstr on a null pointer #401

Closed mistydemeo closed 6 years ago

mistydemeo commented 7 years ago

I noticed that Yabause was crashing when attempting to create an OpenGL window on my Mac. It looks like glGetString(GL_EXTENSIONS) is returning a null pointer - I'm not sure why, but there's probably another bug at play. This doesn't fix that bug, but it at least means that Yabause pops up a "Cannot initialize Video" window instead of crashing.

I've also added a commit which suppresses the build warning about building multiple OpenGL headers on OS X.

mistydemeo commented 6 years ago

Thanks!