From 738ca2f5fcf6e9deea42363382dca2ec7626aee0 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 16 Apr 2010 12:41:02 +0200 Subject: [PATCH] wined3d: Allow offscreen depth/stencil clears again with FBOs. This fixes a regression introduced by 10f58c14bcdeba9f7ea82701b9d9ab8f2bb3414b. --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 2b4e526a148..a45c57794d7 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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(); } }