Commit e0a271ee authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Adjust the rhw transformation for offscreen rendering.

parent 8ebcf400
...@@ -2155,7 +2155,7 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock ...@@ -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); TRACE("Calling glOrtho with %f, %f, %f, %f\n", width, height, -minZ, -maxZ);
if(stateblock->wineD3DDevice->render_offscreen) { if(stateblock->wineD3DDevice->render_offscreen) {
glOrtho(X, X + width, Y, Y - height, -minZ, -maxZ); glOrtho(X, X + width, -Y, -Y - height, -minZ, -maxZ);
} else { } else {
glOrtho(X, X + width, Y + height, Y, -minZ, -maxZ); glOrtho(X, X + width, Y + height, Y, -minZ, -maxZ);
} }
...@@ -2169,7 +2169,7 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock ...@@ -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); TRACE("Calling glOrtho with %f, %f, %f, %f\n", width, height, 1.0, -1.0);
if(stateblock->wineD3DDevice->render_offscreen) { 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 { } else {
glOrtho(X, X + width, Y + height, Y, 1.0, -1.0); glOrtho(X, X + width, Y + height, Y, 1.0, -1.0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment