wined3d: Record floating point pixel shader constants in EndStateBlock() as well.

This commit is contained in:
Henri Verbeet 2008-12-16 16:37:37 +01:00 committed by Alexandre Julliard
parent 4adb342327
commit 78ad5de8da
1 changed files with 8 additions and 0 deletions

View File

@ -4868,6 +4868,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_EndStateBlock(IWineD3DDevice *iface, IW
object->num_contained_vs_consts_b++;
}
}
for (i = 0; i < GL_LIMITS(pshader_constantsF); ++i)
{
if (object->changed.pixelShaderConstantsF[i])
{
object->contained_ps_consts_f[object->num_contained_ps_consts_f] = i;
++object->num_contained_ps_consts_f;
}
}
for(i = 0; i < MAX_CONST_I; i++) {
if (object->changed.pixelShaderConstantsI & (1 << i))
{