glFlush on exit to reset video mode.
Without this, when running the game fullscreen in a smaller resolution, it would stay that way on exit. Introduced in r9633, though that is in 2.3 as well, and this problem only occurred in trunk. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10035 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
d5ff075122
commit
20017e380c
|
@ -257,6 +257,7 @@ void screenShutDown(void)
|
|||
{
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_ACCUM_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||
glFlush();
|
||||
if (screen != NULL)
|
||||
{
|
||||
SDL_FreeSurface(screen);
|
||||
|
|
Loading…
Reference in New Issue