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

Stefan Dösinger stefan at codeweavers.com
Fri Apr 24 18:18:42 CDT 2009


Am Freitag, 24. April 2009 22:48:51 schrieb Henri Verbeet:
> 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.

Yes, indeed. I'll resend d3d8/directx.c has the same issue.




More information about the wine-devel mailing list