[quick-hack] Sims 2 launch fix, vertex shaders from 256 to 4096

Chris Giles drathian at gmail.com
Tue Mar 17 04:03:22 CDT 2015


Originally idea by Robert Showalter, adapted to later wine versions by Luke
Horwell, altered by me.  Windows emulates 8192 vertex shaders, sims 2
requires at least half that to launch properly (although it is only
supposed to ask for 1024), the blue texture glitches exist with this, can
be futher debugged. Bug 8051, discussion previewed in
https://appdb.winehq.org/objectManager.php?sClass=version&iId=2633
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150317/28469c0c/attachment.html>
-------------- next part --------------
From b3f2468f08cfd008357240cc4742583d8a66cf9f Mon Sep 17 00:00:00 2001
From: Chris Giles <drathian at gmail.com>
Date: Tue, 17 Mar 2015 02:53:26 -0400
Subject: The Sims 2 (all versions) launch fix, initially by Luke Horwell

---
 dlls/d3d9/d3d9_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d9/d3d9_private.h b/dlls/d3d9/d3d9_private.h
index d12805f..a0dd503 100644
--- a/dlls/d3d9/d3d9_private.h
+++ b/dlls/d3d9/d3d9_private.h
@@ -309,7 +309,7 @@ HRESULT vertexshader_init(struct d3d9_vertexshader *shader,
         struct d3d9_device *device, const DWORD *byte_code) DECLSPEC_HIDDEN;
 struct d3d9_vertexshader *unsafe_impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface) DECLSPEC_HIDDEN;
 
-#define D3D9_MAX_VERTEX_SHADER_CONSTANTF 256
+#define D3D9_MAX_VERTEX_SHADER_CONSTANTF 4096
 #define D3D9_MAX_SIMULTANEOUS_RENDERTARGETS 4
 
 struct d3d9_pixelshader
-- 
2.3.2



More information about the wine-patches mailing list