Win32: Don't take/restore copies of all textures on app (de)activation

Even though we (might) change the resolution, that doesn't result in
loss of textures because we don't recreate the OpenGL context. Therefore
we also don't have to restore their data. I believe this code is a relic
from the DirectX renderer, which would lose textures when switching away
from a fullscreen window.
epoxy
Nicolas Hake 2016-02-01 20:43:37 +01:00
parent e7c296104f
commit 98c966c7d1
1 changed files with 0 additions and 3 deletions

View File

@ -110,7 +110,6 @@ LRESULT APIENTRY FullScreenWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
if (Application.Active)
{
// restore textures
if (pTexMgr) pTexMgr->IntUnlock();
if (Application.FullScreenMode())
{
Application.SetVideoMode(Application.GetConfigWidth(), Application.GetConfigHeight(), Config.Graphics.BitDepth, Config.Graphics.RefreshRate, Config.Graphics.Monitor, true);
@ -118,8 +117,6 @@ LRESULT APIENTRY FullScreenWinProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
}
else
{
if (pTexMgr)
pTexMgr->IntLock();
if (Application.FullScreenMode())
{
::ChangeDisplaySettings(NULL, 0);