[PATCH 2/7] wined3d: let draw_textured_quad disable texture_target after use

Roderick Colenbrander thunderbird2k at gmail.com
Tue May 18 17:38:41 CDT 2010


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

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 2d7ff23..b8b6096 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -332,6 +332,9 @@ void draw_textured_quad(IWineD3DSurfaceImpl *src_surface, const RECT *src_rect,
     glBindTexture(info.bind_target, 0);
     checkGLcall("glBindTexture(info->bind_target, 0)");
 
+    glDisable(info.bind_target);
+    checkGLcall("glDisable(info.bind_target)");
+
     /* We changed the filtering settings on the texture. Inform the
      * container about this to get the filters reset properly next draw. */
     if (SUCCEEDED(IWineD3DSurface_GetContainer((IWineD3DSurface *)src_surface, &IID_IWineD3DBaseTexture, (void **)&texture)))
-- 
1.6.3.3




More information about the wine-patches mailing list