- don't force the renderer to remain active in windowed mode when in the background.

It's ok to have this as an option, but not as an unconditional forced feature.

(cherry picked from commit b35213741f)
This commit is contained in:
Christoph Oelckers 2018-05-01 07:48:59 +02:00 committed by drfrag666
parent 4a74c9606a
commit 84b261d947

View file

@ -80,6 +80,7 @@ PFNWGLSWAPINTERVALEXTPROC myWglSwapIntervalExtProc;
CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CUSTOM_CVAR(Bool, gl_debug, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
{
@ -1144,7 +1145,7 @@ void Win32GLFrameBuffer::InitializeState()
bool Win32GLFrameBuffer::CanUpdate()
{
if (!AppActive && IsFullscreen()) return false;
if (!AppActive && (IsFullscreen() || !vid_activeinbackground)) return false;
return true;
}