Matteo Bruni : d3d9: Limit VS/PS reported version.

Alexandre Julliard julliard at winehq.org
Wed Oct 26 12:35:47 CDT 2011


Module: wine
Branch: master
Commit: 6e6a917617ab79a309e123a0207995b574bc59ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6e6a917617ab79a309e123a0207995b574bc59ea

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Oct 25 16:58:43 2011 +0200

d3d9: Limit VS/PS reported version.

---

 dlls/d3d9/directx.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index 148b9b7..4099a99 100644
--- a/dlls/d3d9/directx.c
+++ b/dlls/d3d9/directx.c
@@ -381,6 +381,11 @@ void filter_caps(D3DCAPS9* pCaps)
 
     pCaps->MaxVertexShaderConst = min(D3D9_MAX_VERTEX_SHADER_CONSTANTF, pCaps->MaxVertexShaderConst);
     pCaps->NumSimultaneousRTs = min(D3D9_MAX_SIMULTANEOUS_RENDERTARGETS, pCaps->NumSimultaneousRTs);
+
+    if (pCaps->PixelShaderVersion > D3DPS_VERSION(3,0))
+        pCaps->PixelShaderVersion = D3DPS_VERSION(3,0);
+    if (pCaps->VertexShaderVersion > D3DVS_VERSION(3,0))
+        pCaps->VertexShaderVersion = D3DVS_VERSION(3,0);
 }
 
 static HRESULT WINAPI IDirect3D9Impl_GetDeviceCaps(IDirect3D9Ex *iface, UINT Adapter,




More information about the wine-cvs mailing list