[PATCH 1/1] wined3d: Allow offscreen depth/stencil clears again with FBOs.
Henri Verbeet
hverbeet at codeweavers.com
Fri Apr 16 05:41:02 CDT 2010
This fixes a regression introduced by
10f58c14bcdeba9f7ea82701b9d9ab8f2bb3414b. Applies on top of my previous
patches.
---
dlls/wined3d/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2b4e526..a45c577 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();
}
}
--
1.6.4.4
More information about the wine-patches
mailing list