Stefan Dösinger : wined3d: Account for offscreen rendering when setting up the clearing scissor rectangle .
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 12 08:28:29 CDT 2007
Module: wine
Branch: master
Commit: eba060463d2f4964abd8f7d81d8b433e6577fb56
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eba060463d2f4964abd8f7d81d8b433e6577fb56
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Mar 7 01:43:53 2007 +0100
wined3d: Account for offscreen rendering when setting up the clearing scissor rectangle.
---
dlls/wined3d/device.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 1c2080b..13d0fa5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4221,8 +4221,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
continue;
}
- glScissor(curRect[i].x1, target->currentDesc.Height - curRect[i].y2,
- curRect[i].x2 - curRect[i].x1, curRect[i].y2 - curRect[i].y1);
+ if(This->render_offscreen) {
+ glScissor(curRect[i].x1, curRect[i].y1,
+ curRect[i].x2 - curRect[i].x1, curRect[i].y2 - curRect[i].y1);
+ } else {
+ glScissor(curRect[i].x1, target->currentDesc.Height - curRect[i].y2,
+ curRect[i].x2 - curRect[i].x1, curRect[i].y2 - curRect[i].y1);
+ }
checkGLcall("glScissor");
glClear(glMask);
More information about the wine-cvs
mailing list