mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
wined3d: Fix inversion in shader_get_position_fixup().
Spotted by Matteo Bruni.
Fixes: ba2f78922f
This commit is contained in:
parent
d042b3b138
commit
5fa3e9b829
|
@ -4340,7 +4340,7 @@ static inline void shader_get_position_fixup(const struct wined3d_context *conte
|
|||
for (i = 0; i < fixup_count; ++i)
|
||||
{
|
||||
position_fixup[4 * i ] = 1.0f;
|
||||
position_fixup[4 * i + 1] = 1.0f;
|
||||
position_fixup[4 * i + 1] = -1.0f;
|
||||
if (!context->d3d_info->subpixel_viewport)
|
||||
{
|
||||
double dummy;
|
||||
|
@ -4348,7 +4348,7 @@ static inline void shader_get_position_fixup(const struct wined3d_context *conte
|
|||
y = modf(state->viewports[i].y, &dummy) * 2.0f;
|
||||
}
|
||||
position_fixup[4 * i + 2] = (center_offset + x) / state->viewports[i].width;
|
||||
position_fixup[4 * i + 3] = -(center_offset + y) / state->viewports[i].height;
|
||||
position_fixup[4 * i + 3] = (center_offset + y) / state->viewports[i].height;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue