|
|
@ -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
|
|
|
|