mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-12-11 21:40:49 +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;
|
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
|
// determine which back end we will use
|
||||||
SetBackEndRenderer();
|
SetBackEndRenderer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue