Reduce minimum required OpenGL version from 3.3.0 to 2.1.0, and other fixes #3

Merged
xavi merged 3 commits from gl-renderer into main 2025-01-08 00:48:26 +01:00
Showing only changes of commit 21211a7aa5 - Show all commits

View file

@ -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,