[PATCH 1/5] d3d8: Limit VS/PS reported version.

Matteo Bruni mbruni at codeweavers.com
Mon Oct 24 11:58:45 CDT 2011


---
 dlls/d3d8/device.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 2a78117..6c59ff9 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -407,6 +407,12 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetDeviceCaps(IDirect3DDevice8 *iface
 
     fixup_caps(pWineCaps);
     WINECAPSTOD3D8CAPS(pCaps, pWineCaps)
+
+    if (pCaps->VertexShaderVersion > D3DVS_VERSION(1,1))
+        pCaps->VertexShaderVersion = D3DVS_VERSION(1,1);
+    if (pCaps->PixelShaderVersion > D3DPS_VERSION(1,4))
+        pCaps->PixelShaderVersion = D3DPS_VERSION(1,4);
+
     HeapFree(GetProcessHeap(), 0, pWineCaps);
 
     TRACE("Returning %p %p\n", This, pCaps);
-- 
1.7.3.4




More information about the wine-patches mailing list