Henri Verbeet : wined3d: Don't restore the draw buffer in color_fill_fbo().
Alexandre Julliard
julliard at winehq.org
Thu Dec 10 10:00:57 CST 2009
Module: wine
Branch: master
Commit: bd9828a0393a45b7fdd8c1ecb01a294355e3aa58
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd9828a0393a45b7fdd8c1ecb01a294355e3aa58
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Dec 9 20:32:07 2009 +0100
wined3d: Don't restore the draw buffer in color_fill_fbo().
This should be done by the context management these days.
---
dlls/wined3d/device.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 51c2fa7..cebb709 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5742,12 +5742,6 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
glClear(GL_COLOR_BUFFER_BIT);
checkGLcall("glClear");
- if (swapchain && surface == ((IWineD3DSwapChainImpl *)swapchain)->frontBuffer
- && ((IWineD3DSwapChainImpl *)swapchain)->backBuffer) {
- glDrawBuffer(GL_BACK);
- checkGLcall("glDrawBuffer()");
- }
-
LEAVE_GL();
context_release(context);
}
More information about the wine-cvs
mailing list