[PATCH 1/7] wined3d: let swapchain_blit enable/disable texture target

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


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

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index eeb1278..85bab84 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -162,6 +162,7 @@ static void swapchain_blit(IWineD3DSwapChainImpl *This, struct wined3d_context *
          * so there are no d3d texture settings to dirtify
          */
         device->blitter->set_shader((IWineD3DDevice *) device, backbuffer);
+        glEnable(backbuffer->texture_target);
         glTexParameteri(backbuffer->texture_target, GL_TEXTURE_MIN_FILTER, gl_filter);
         glTexParameteri(backbuffer->texture_target, GL_TEXTURE_MAG_FILTER, gl_filter);
 
@@ -201,6 +202,7 @@ static void swapchain_blit(IWineD3DSwapChainImpl *This, struct wined3d_context *
 
         glPopMatrix();
         glPopAttrib();
+        glDisable(backbuffer->texture_target);
 
         device->blitter->unset_shader((IWineD3DDevice *) device);
         checkGLcall("Swapchain present blit(manual)\n");
-- 
1.6.3.3




More information about the wine-patches mailing list