mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-16 17:11:03 +00:00
Only cleanup the GL context if OpenGL was initialized
This commit is contained in:
parent
9af9f54f36
commit
85571cfc56
1 changed files with 7 additions and 4 deletions
|
@ -363,10 +363,13 @@ GLimp_Shutdown(void)
|
|||
current. This may help some broken
|
||||
video drivers like the AMD Catalyst
|
||||
to avoid artifacts in unused screen
|
||||
areas, */
|
||||
qglClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
qglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
GLimp_EndFrame();
|
||||
areas. */
|
||||
if (SDL_WasInit(SDL_INIT_VIDEO))
|
||||
{
|
||||
qglClearColor(0.0, 0.0, 0.0, 0.0);
|
||||
qglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
GLimp_EndFrame();
|
||||
}
|
||||
|
||||
if (surface)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue