mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 02:51:37 +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.
(cherry picked from commit b35213741f
)
This commit is contained in:
parent
4a74c9606a
commit
84b261d947
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue