Matteo Bruni : wined3d: Set proper values for the guard band caps.

Alexandre Julliard julliard at winehq.org
Thu Jul 23 16:36:56 CDT 2020


Module: wine
Branch: master
Commit: ffc3c099d4818c3fc2bbfa76a0e9aaa59ab5f9a4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ffc3c099d4818c3fc2bbfa76a0e9aaa59ab5f9a4

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Jul 22 19:00:56 2020 +0200

wined3d: Set proper values for the guard band caps.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 67e96d1249..55ece68d55 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;
 




More information about the wine-cvs mailing list