wined3d: Make sure update_minfilter and update_magfilter are initialized

Henri Verbeet hverbeet at codeweavers.com
Mon Sep 22 01:54:58 CDT 2008


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

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 76d449a..1d50434 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -77,7 +77,8 @@ static void context_apply_attachment_filter_states(IWineD3DDevice *iface, IWineD
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
     const IWineD3DSurfaceImpl *surface_impl = (IWineD3DSurfaceImpl *)surface;
     IWineD3DBaseTextureImpl *texture_impl;
-    BOOL update_minfilter, update_magfilter;
+    BOOL update_minfilter = FALSE;
+    BOOL update_magfilter = FALSE;
 
     /* Update base texture states array */
     if (SUCCEEDED(IWineD3DSurface_GetContainer(surface, &IID_IWineD3DBaseTexture, (void **)&texture_impl)))
-- 
1.5.6.4



--------------010106020702070602030003--



More information about the wine-patches mailing list