24 Apr
2009
24 Apr
'09
8:48 p.m.
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.