wined3d: Fix inversion in shader_get_position_fixup().

Spotted by Matteo Bruni.

Fixes: ba2f78922f
This commit is contained in:
Elizabeth Figura 2024-05-14 23:08:02 -05:00 committed by Alexandre Julliard
parent d042b3b138
commit 5fa3e9b829

View file

@ -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;
}
}