wined3d: Adjust the rhw transformation for offscreen rendering.
commit2cdced8193fbf4693298f84d6a121d4ce4607fd5
authorStefan Dösinger <stefan@codeweavers.com>
Sat, 3 Mar 2007 01:35:17 +0000 (3 02:35 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 5 Mar 2007 14:31:36 +0000 (5 15:31 +0100)
treeb9d9671d25508d66833e4a9a8d77343338d04e70
parent7126b63645747fe035aaa1167f0dcda8cb38be01
wined3d: Adjust the rhw transformation for offscreen rendering.

When drawing processed vertices with the fixed function pipeline the
projection matrix is set up to map y values from 0 to height to 1.0;
-1.0(gl and d3d coord systems are flipped). This moves the y axis to
the bottom of the drawing area. When later on the y inversion matrix
is applied for offscreen rendering, the coordinate system will get
flipped out of the viewport.

This patch sets the Y range up upside down when using offscreen
rendering, so the invymat will flip it to the correct position. This
has to happen before the 0.375 pixel correction.
dlls/wined3d/state.c