Stefan Dösinger : wined3d: Adjust the rhw transformation for offscreen rendering.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Mar 6 16:13:18 CST 2007
Module: wine
Branch: master
Commit: e0a271ee0cf25a2c7e7da8c6062d361b5eb46f0d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0a271ee0cf25a2c7e7da8c6062d361b5eb46f0d
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Mar 3 13:51:43 2007 +0100
wined3d: Adjust the rhw transformation for offscreen rendering.
---
dlls/wined3d/state.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index ba421a1..c56ce67 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -2155,7 +2155,7 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
*/
TRACE("Calling glOrtho with %f, %f, %f, %f\n", width, height, -minZ, -maxZ);
if(stateblock->wineD3DDevice->render_offscreen) {
- glOrtho(X, X + width, Y, Y - height, -minZ, -maxZ);
+ glOrtho(X, X + width, -Y, -Y - height, -minZ, -maxZ);
} else {
glOrtho(X, X + width, Y + height, Y, -minZ, -maxZ);
}
@@ -2169,7 +2169,7 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
*/
TRACE("Calling glOrtho with %f, %f, %f, %f\n", width, height, 1.0, -1.0);
if(stateblock->wineD3DDevice->render_offscreen) {
- glOrtho(X, X + width, Y, Y - height, 1.0, -1.0);
+ glOrtho(X, X + width, -Y, -Y - height, 1.0, -1.0);
} else {
glOrtho(X, X + width, Y + height, Y, 1.0, -1.0);
}
More information about the wine-cvs
mailing list