git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1239 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -153,7 +153,7 @@ namespace BluntDirectX { namespace Direct3D
|
|||||||
|
|
||||||
void EnableScissor( int left, int top, int width, int height )
|
void EnableScissor( int left, int top, int width, int height )
|
||||||
{
|
{
|
||||||
RECT r = { left, top, width, height };
|
RECT r = { left, top, left + width, top + height };
|
||||||
device->SetScissorRect( &r );
|
device->SetScissorRect( &r );
|
||||||
device->SetRenderState( D3DRS_SCISSORTESTENABLE, true );
|
device->SetRenderState( D3DRS_SCISSORTESTENABLE, true );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user