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.
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.