mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
- 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:
parent
af76e9a9c4
commit
b35213741f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
@ -1119,7 +1120,7 @@ void SystemFrameBuffer::InitializeState()
|
|||
|
||||
bool SystemFrameBuffer::CanUpdate()
|
||||
{
|
||||
if (!AppActive && IsFullscreen()) return false;
|
||||
if (!AppActive && (IsFullscreen() || !vid_activeinbackground)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue