From 6e6a917617ab79a309e123a0207995b574bc59ea Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Tue, 25 Oct 2011 16:58:43 +0200 Subject: [PATCH] d3d9: Limit VS/PS reported version. --- dlls/d3d9/directx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c index 148b9b76f1..4099a99641 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,