[PATCH 3/7] wined3d: replace set_shader call with unset_shader in blt_to_drawable

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


The blit_shader is activated before draw_textured_quad, so after use it should be deactivated
instead of being activated again.
---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index b8b6096..612cfa4 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4358,7 +4358,7 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
     draw_textured_quad(This, &src_rect, &dst_rect, WINED3DTEXF_POINT);
     LEAVE_GL();
 
-    device->blitter->set_shader((IWineD3DDevice *) device, This);
+    device->blitter->unset_shader((IWineD3DDevice *) device);
 
     swapchain = (This->Flags & SFLAG_SWAPCHAIN) ? (IWineD3DSwapChainImpl *)This->container : NULL;
     if (wined3d_settings.strict_draw_ordering || (swapchain
-- 
1.6.3.3




More information about the wine-patches mailing list