mupen64plus / mupen64plus-video-rice

Video plugin for the Mupen64Plus v2.0 project, using OpenGL. This plugin is based on the RiceVideoLinux plugin from earlier versions of Mupen64Plus.
31 stars 40 forks source link

Seg fault when glGetString() retrun NULL #32

Closed Narann closed 9 years ago

Narann commented 9 years ago

There is some situations where glGetString calls, like glGetString(GL_EXTENSIONS);, return a NULL pointer. As this string is parsed to find supported extensions, this bring to a crash:

Video: Using OpenGL: (null) - (null) : (null)
Segmentation fault

Those situations are rare (in my case it's when I link Rice to libGLESv2.so without any hardware support. But should be handled smoothly with an error message.

Narann commented 9 years ago

Fixed in https://github.com/Narann/mupen64plus-video-rice/commit/262858dfb83bfb38aad1cb4ef879ce0137228dc4