[PATCH 2/5] wined3d: Don't restore the draw buffer in color_fill_fbo().
Henri Verbeet
hverbeet at codeweavers.com
Wed Dec 9 13:32:07 CST 2009
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);
}
--
1.6.4.4
More information about the wine-patches
mailing list