[PATCH 2/5] d3d9: Limit VS/PS reported version.
Matteo Bruni
mbruni at codeweavers.com
Mon Oct 24 11:58:46 CDT 2011
---
dlls/d3d9/device.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 0372239..c99f16c 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -351,6 +351,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDeviceCaps(IDirect3DDevice9Ex *ifa
wined3d_mutex_unlock();
WINECAPSTOD3D9CAPS(pCaps, pWineCaps)
+
+ if (pCaps->VertexShaderVersion > D3DVS_VERSION(3,0))
+ pCaps->VertexShaderVersion = D3DVS_VERSION(3,0);
+ if (pCaps->PixelShaderVersion > D3DPS_VERSION(3,0))
+ pCaps->PixelShaderVersion = D3DPS_VERSION(3,0);
+
HeapFree(GetProcessHeap(), 0, pWineCaps);
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
--
1.7.3.4
More information about the wine-patches
mailing list