[1/2] D3D: Limit d3d8 and d3d9 vshader constants to 256

Henri Verbeet hverbeet at gmail.com
Fri Apr 24 15:48:51 CDT 2009


Not my preferred fix, but I suppose it works.

> @@ -359,6 +359,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetDeviceCaps(LPDIRECT3DDEVICE8 iface
>      if(pCaps->VertexShaderVersion > D3DVS_VERSION(1,1)){
>          pCaps->VertexShaderVersion = D3DVS_VERSION(1,1);
>      }
> +    pCaps->MaxVertexShaderConst = min(256, pCaps->MaxVertexShaderConst);
I think you should use D3D8_MAX_VERTEX_SHADER_CONSTANTF here.



More information about the wine-devel mailing list