OPENGL: add checks for case when glGetString return NULL
This commit is contained in:
parent
68ee863367
commit
4e47c03a64
2 changed files with 5 additions and 1 deletions
|
@ -197,7 +197,7 @@ void GfxOpenGL::initExtensions() {
|
|||
#endif
|
||||
|
||||
const char *extensions = (const char *)glGetString(GL_EXTENSIONS);
|
||||
if (strstr(extensions, "ARB_fragment_program")) {
|
||||
if (extensions && strstr(extensions, "ARB_fragment_program")) {
|
||||
_useDepthShader = true;
|
||||
_useDimShader = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue