[PATCH 3/5] wined3d: Set proper values for the guard band caps.
Matteo Bruni
mbruni at codeweavers.com
Wed Jul 22 12:00:56 CDT 2020
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
I picked the values reported by AMD since R600 at least. Nvidia
always reports 1e6 bounds, not sure about Intel.
dlls/wined3d/directx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 67e96d1249c1..55ece68d5543 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2088,10 +2088,10 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d_adapter *adapter,
caps->MaxTextureAspectRatio = d3d_info->limits.texture_size;
caps->MaxVertexW = 1e10f;
- caps->GuardBandLeft = 0.0f;
- caps->GuardBandTop = 0.0f;
- caps->GuardBandRight = 0.0f;
- caps->GuardBandBottom = 0.0f;
+ caps->GuardBandLeft = -32768.0f;
+ caps->GuardBandTop = -32768.0f;
+ caps->GuardBandRight = 32768.0f;
+ caps->GuardBandBottom = 32768.0f;
caps->ExtentsAdjust = 0.0f;
--
2.26.2
More information about the wine-devel
mailing list