[PATCH 1/5] wined3d: Also clear context->current_fbo in context_apply_blit_state().

Henri Verbeet hverbeet at codeweavers.com
Mon May 27 02:22:48 CDT 2013


The draw buffer handling code depends on this being current. This fixes a bug
exposed by commit 075fa6547c0edf2b1b2c1cabae7731fdc1308cc2.
---
 dlls/wined3d/context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 5b3fd62..e6f2c1a 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2149,6 +2149,7 @@ void context_apply_blit_state(struct wined3d_context *context, const struct wine
         }
         else
         {
+            context->current_fbo = NULL;
             context_bind_fbo(context, GL_FRAMEBUFFER, NULL);
             rt_mask = context_generate_rt_mask_from_surface(rt);
         }
-- 
1.8.1.5




More information about the wine-patches mailing list