Module: wine Branch: master Commit: e06997359f7a38ef9920627cd88e7fccb349cffa URL: http://source.winehq.org/git/wine.git/?a=commit;h=e06997359f7a38ef9920627cd8...
Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Jul 17 15:26:44 2009 +0200
wined3d: Set the highest dirty marker after marking shader constants dirty.
---
dlls/wined3d/context.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 172cd6b..078005f 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1794,10 +1794,12 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU if(This->activeContext->vshader_const_dirty) { memset(This->activeContext->vshader_const_dirty, 1, sizeof(*This->activeContext->vshader_const_dirty) * GL_LIMITS(vshader_constantsF)); + This->highest_dirty_vs_const = GL_LIMITS(vshader_constantsF); } if(This->activeContext->pshader_const_dirty) { memset(This->activeContext->pshader_const_dirty, 1, sizeof(*This->activeContext->pshader_const_dirty) * GL_LIMITS(pshader_constantsF)); + This->highest_dirty_ps_const = GL_LIMITS(pshader_constantsF); } This->activeContext = context; context_set_last_device(This);