wined3d: Allow offscreen depth/stencil clears again with FBOs.
authorHenri Verbeet <hverbeet@codeweavers.com>
Fri, 16 Apr 2010 10:41:02 +0000 (12:41 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 16 Apr 2010 14:24:40 +0000 (16:24 +0200)
This fixes a regression introduced by 10f58c14bcdeba9f7ea82701b9d9ab8f2bb3414b.

dlls/wined3d/device.c

index 2b4e526a1480fae26568ac373df73c5d967c077b..a45c57794d7929920af0126f5f20a45849a5ee04 100644 (file)
@@ -4394,7 +4394,7 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
             ENTER_GL();
             context_bind_fbo(context, GL_FRAMEBUFFER, &context->dst_fbo);
             context_attach_surface_fbo(context, GL_FRAMEBUFFER, 0, target);
-            context_attach_depth_stencil_fbo(context, GL_FRAMEBUFFER, NULL, FALSE);
+            context_attach_depth_stencil_fbo(context, GL_FRAMEBUFFER, depth_stencil, TRUE);
             LEAVE_GL();
         }
     }