From cf5bc7a7117b270c5351d61628b0307c710768ec Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Wed, 18 Jan 2012 23:41:32 +0100 Subject: [PATCH] wined3d: Dirtify STATE_FRAMEBUFFER after a FBO depth blit. --- dlls/wined3d/surface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index f38c148c748..7aa68d191ad 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1071,6 +1071,7 @@ static void wined3d_surface_depth_blt_fbo(const struct wined3d_device *device, s context_apply_fbo_state_blit(context, GL_DRAW_FRAMEBUFFER, NULL, dst_surface, SFLAG_INTEXTURE); context_set_draw_buffer(context, GL_NONE); context_check_fbo_status(context, GL_DRAW_FRAMEBUFFER); + context_invalidate_state(context, STATE_FRAMEBUFFER); if (gl_mask & GL_DEPTH_BUFFER_BIT) {