- 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.
This commit is contained in:
Christoph Oelckers 2018-05-01 07:48:59 +02:00
parent af76e9a9c4
commit b35213741f

View file

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