Reduce minimum required OpenGL version from 3.3.0 to 2.1.0, and other fixes #3
1 changed files with 5 additions and 1 deletions
|
@ -377,7 +377,11 @@ SDL_Surface* gfScrCreateWindow(int nWinWidth, int nWinHeight, int nTotalDepth,in
|
|||
}
|
||||
#endif
|
||||
/* Create OpenGL context */
|
||||
GLContext = SDL_GL_CreateContext(GfuiWindow);
|
||||
if (!(GLContext = SDL_GL_CreateContext(GfuiWindow)))
|
||||
{
|
||||
GfLogError("SDL_GL_CreateContext failed: %s\n", SDL_GetError());
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// If specified, try best possible settings.
|
||||
PScreenSurface = SDL_CreateRGBSurface(0, nWinWidth, nWinHeight, nTotalDepth,
|
||||
|
|
Loading…
Reference in a new issue