From 7ca6839c943229cce653586da3c14d7e11fd4d0a Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 27 May 2013 09:22:48 +0200 Subject: [PATCH] wined3d: Also clear context->current_fbo in context_apply_blit_state(). 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 5b3fd6212b8..e6f2c1a1664 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); } -- 2.11.4.GIT