Module: wine Branch: master Commit: 738ca2f5fcf6e9deea42363382dca2ec7626aee0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=738ca2f5fcf6e9deea42363382...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Apr 16 12:41:02 2010 +0200
wined3d: Allow offscreen depth/stencil clears again with FBOs.
This fixes a regression introduced by 10f58c14bcdeba9f7ea82701b9d9ab8f2bb3414b.
---
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(); } }