wined3d: Fix a copy and paste bug.

This happened to work because most cards have the same amount of
pshader and vshader constants, but for some reason this doesn't hold
true on this macbook pro here, which lead to a crash due to heap
corruption
This commit is contained in:
Stefan Dösinger 2008-07-10 13:38:35 -05:00 committed by Alexandre Julliard
parent 1219e3d4a7
commit d66c05ce1d
1 changed files with 2 additions and 2 deletions

View File

@ -459,11 +459,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateStateBlock(IWineD3DDevice* iface,
object->changed.pixelShader = TRUE; object->changed.pixelShader = TRUE;
/* Pixel Shader Constants */ /* Pixel Shader Constants */
for (i = 0; i < GL_LIMITS(vshader_constantsF); ++i) { for (i = 0; i < GL_LIMITS(pshader_constantsF); ++i) {
object->contained_ps_consts_f[i] = i; object->contained_ps_consts_f[i] = i;
object->changed.pixelShaderConstantsF[i] = TRUE; object->changed.pixelShaderConstantsF[i] = TRUE;
} }
object->num_contained_ps_consts_f = GL_LIMITS(vshader_constantsF); object->num_contained_ps_consts_f = GL_LIMITS(pshader_constantsF);
for (i = 0; i < MAX_CONST_B; ++i) { for (i = 0; i < MAX_CONST_B; ++i) {
object->contained_ps_consts_b[i] = i; object->contained_ps_consts_b[i] = i;
object->changed.pixelShaderConstantsB[i] = TRUE; object->changed.pixelShaderConstantsB[i] = TRUE;