mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-12-03 17:52:19 +00:00
Disable r_useScissor when r_lockSurfaces is active
This commit is contained in:
parent
d17fa6b2b6
commit
907fc5771b
1 changed files with 12 additions and 0 deletions
|
@ -628,6 +628,18 @@ void idRenderSystemLocal::BeginFrame( int windowWidth, int windowHeight ) {
|
|||
return;
|
||||
}
|
||||
|
||||
// DG: r_lockSurfaces only works properly if r_useScissor is disabled
|
||||
if ( r_lockSurfaces.IsModified() ) {
|
||||
static bool origUseScissor = true;
|
||||
r_lockSurfaces.ClearModified();
|
||||
if ( r_lockSurfaces.GetBool() ) {
|
||||
origUseScissor = r_useScissor.GetBool();
|
||||
r_useScissor.SetBool( false );
|
||||
} else {
|
||||
r_useScissor.SetBool( origUseScissor );
|
||||
}
|
||||
} // DG end
|
||||
|
||||
// determine which back end we will use
|
||||
SetBackEndRenderer();
|
||||
|
||||
|
|
Loading…
Reference in a new issue