mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-11 20:51:37 +00:00
Clear display buffer before shutting the refresher down
This commit is contained in:
parent
c87e8b280a
commit
dbed2fa053
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue