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
_ScissorTouched = false;
float x= scissor.X;
float y= scissor.Y;
float width= scissor.Width;
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);
}
else
{
float y= scissor.Y;
if (_HWnd)
{
// Get the render target size

Loading…
Cancel
Save