Fix comparing x twice in Direct3d setupScissor

develop
Nimetu 3 years ago
parent 75f490d394
commit 95716b65ca

@ -283,18 +283,16 @@ void CDriverD3D::setupScissor (const class CScissor& scissor)
// Get viewport // Get viewport
_ScissorTouched = false; _ScissorTouched = false;
float x= scissor.X; float x= scissor.X;
float y= scissor.Y;
float width= scissor.Width; float width= scissor.Width;
float height= scissor.Height; float height= scissor.Height;
if(x==0 && x==0 && width==1 && height==1) if(x==0 && y==0 && width==1 && height==1)
{ {
setRenderState (D3DRS_SCISSORTESTENABLE, FALSE); setRenderState (D3DRS_SCISSORTESTENABLE, FALSE);
} }
else else
{ {
float y= scissor.Y;
if (_HWnd) if (_HWnd)
{ {
// Get the render target size // Get the render target size

Loading…
Cancel
Save