SDL2 documentation says so. In reality it fixes error for kmsdrm driver.
// hide the menu with SDL_WINDOW_BORDERLESS
windowflags |= SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS;
#endif
-#ifndef USE_GLES2
- if ((qglGetString = (const GLubyte* (GLAPIENTRY *)(GLenum name))GL_GetProcAddress("glGetString")) == NULL)
- {
- VID_Shutdown();
- Con_Print("Required OpenGL function glGetString not found\n");
- return false;
- }
-#endif
// Knghtbrd: should do platform-specific extension string function here
}
#endif
+#ifndef USE_GLES2
+ if ((qglGetString = (const GLubyte* (GLAPIENTRY *)(GLenum name))GL_GetProcAddress("glGetString")) == NULL)
+ {
+ VID_Shutdown();
+ Con_Print("Required OpenGL function glGetString not found\n");
+ return false;
+ }
+#endif
+
vid_softsurface = NULL;
vid.softpixels = NULL;