Supply the correct box on the screen to be processed during the clear
call, using opengl coordinates, not directx coordinates.
This commit is contained in:
parent
c963e25c0e
commit
575dbfa769
|
@ -2088,8 +2088,10 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
|
|||
/* Note gl uses lower left, width/height */
|
||||
TRACE("(%p) %p Rect=(%ld,%ld)->(%ld,%ld) glRect=(%ld,%ld), len=%ld, hei=%ld\n", This, curRect,
|
||||
curRect->x1, curRect->y1, curRect->x2, curRect->y2,
|
||||
curRect->x1, curRect->y2, curRect->x2 - curRect->x1, curRect->y2 - curRect->y1);
|
||||
glScissor(curRect->x1, curRect->y2, curRect->x2 - curRect->x1, curRect->y2 - curRect->y1);
|
||||
curRect->x1, (This->PresentParms.BackBufferHeight - curRect->y2),
|
||||
curRect->x2 - curRect->x1, curRect->y2 - curRect->y1);
|
||||
glScissor(curRect->x1, (This->PresentParms.BackBufferHeight - curRect->y2),
|
||||
curRect->x2 - curRect->x1, curRect->y2 - curRect->y1);
|
||||
checkGLcall("glScissor");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue