wined3d: Emulate fractional viewports if GL doesn't support them.
commit26a53f674c234aaba4a85ec36bae48384899b705
authorStefan Dösinger <stefan@codeweavers.com>
Wed, 3 Nov 2021 17:15:30 +0000 (3 20:15 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 4 Nov 2021 21:36:29 +0000 (4 22:36 +0100)
tree94f3f8e44a25f7bf7c22d9398c6a368b86121b85
parent13871e8924f2234b203558f38c61037b06bb995d
wined3d: Emulate fractional viewports if GL doesn't support them.

This allows test_fractional_viewports to pass regardless of GL capabilies.
I don't think we can get rid of WINED3D_PIXEL_CENTER_INTEGER (and add +0.5
in the client libs) due to vpos in d3d9 shaders.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/adapter_gl.c
dlls/wined3d/adapter_vk.c
dlls/wined3d/state.c
dlls/wined3d/wined3d_private.h