- GL changes for engine restart.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1131 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2010-12-15 23:16:24 +00:00
parent 7e4872793f
commit 8414b8102d
10 changed files with 47 additions and 6 deletions

View file

@ -624,3 +624,12 @@ void OpenGLFrameBuffer::DrawRemainingPlayerSprites()
{
// not used by hardware renderer
}
void OpenGLFrameBuffer::GameRestart()
{
memcpy (SourcePalette, GPalette.BaseColors, sizeof(PalEntry)*256);
UpdatePalette ();
ScreenshotBuffer = NULL;
LastCamera = NULL;
gl_GenerateGlobalBrightmapFromColormap();
}