Stefan Dösinger : wined3d: Fix a small bug in a patch from yesterday.

Alexandre Julliard julliard at winehq.org
Wed Mar 5 06:24:13 CST 2008


Module: wine
Branch: master
Commit: 6ea0880e4358916ab6d4b00beade1cf95906c2a9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6ea0880e4358916ab6d4b00beade1cf95906c2a9

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Mar  5 02:40:16 2008 +0100

wined3d: Fix a small bug in a patch from yesterday.

---

 dlls/wined3d/context.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 4362b6c..52b1099 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -915,11 +915,11 @@ 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));
+                   sizeof(*This->activeContext->vshader_const_dirty) * 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));
+                   sizeof(*This->activeContext->pshader_const_dirty) * GL_LIMITS(pshader_constantsF));
         }
         This->activeContext = context;
     }




More information about the wine-cvs mailing list