[PATCH] wined3d: Raise MaxPrimitiveCount and MaxVertexIndex (try 2).

Stefan Dösinger stefan at codeweavers.com
Fri Mar 28 15:03:46 CDT 2014


Try 2: Also raise MaxVertexIndex. I miscounted the number of Fs in our code and thought we already set the correct value.

This supersedes patch 103539.

This fixes bug 35112.
---
 dlls/wined3d/directx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index ef81278..86d0fcc 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -4473,8 +4473,8 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
     caps->MaxAnisotropy = gl_info->limits.anisotropy;
     caps->MaxPointSize = gl_info->limits.pointsize_max;
 
-    caps->MaxPrimitiveCount   = 0xfffff; /* For now set 2^20-1 which is used by most >=Geforce3/Radeon8500 cards */
-    caps->MaxVertexIndex      = 0xfffff;
+    caps->MaxPrimitiveCount   = 0x555555; /* Taken from an AMD Radeon HD 5700 (Evergreen) GPU. */
+    caps->MaxVertexIndex      = 0xffffff; /* Taken from an AMD Radeon HD 5700 (Evergreen) GPU. */
     caps->MaxStreams          = MAX_STREAMS;
     caps->MaxStreamStride     = 1024;
 
-- 
1.8.5.2 (Apple Git-48)




More information about the wine-patches mailing list