Clear display buffer before shutting the refresher down

This commit is contained in:
Yamagi Burmeister 2012-07-10 15:02:42 +02:00
parent c87e8b280a
commit dbed2fa053

View file

@ -342,6 +342,15 @@ GLimp_SetMode(int *pwidth, int *pheight, int mode, qboolean fullscreen)
void
GLimp_Shutdown(void)
{
/* Clear the backbuffer and make it
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();
if (surface)
{
SDL_FreeSurface(surface);