Henri Verbeet : wined3d: Record floating point pixel shader constants in EndStateBlock() as well.
Module: wine Branch: master Commit: 78ad5de8da243f7c724e5b3b527c6f2446d00e44 URL: http://source.winehq.org/git/wine.git/?a=commit;h=78ad5de8da243f7c724e5b3b52... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Dec 16 16:37:37 2008 +0100 wined3d: Record floating point pixel shader constants in EndStateBlock() as well. --- dlls/wined3d/device.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 792426e..326c8ba 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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)) {
participants (1)
-
Alexandre Julliard