[PATCH 2/5] wined3d: Skip some unnecessary FBO binds.
Henri Verbeet
hverbeet at codeweavers.com
Mon Jul 20 05:21:48 CDT 2009
---
dlls/wined3d/device.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index a1ed4dc..cf23419 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6080,12 +6080,6 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
glClear(GL_COLOR_BUFFER_BIT);
checkGLcall("glClear");
- if (This->activeContext->current_fbo) {
- context_bind_fbo(This->activeContext, GL_FRAMEBUFFER_EXT, &This->activeContext->current_fbo->id);
- } else {
- context_bind_fbo(This->activeContext, GL_FRAMEBUFFER_EXT, NULL);
- }
-
if (swapchain && surface == ((IWineD3DSwapChainImpl *)swapchain)->frontBuffer
&& ((IWineD3DSwapChainImpl *)swapchain)->backBuffer) {
glDrawBuffer(GL_BACK);
@@ -6534,12 +6528,6 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
IWineD3DSurface_ModifyLocation(dst_surface, SFLAG_INDRAWABLE, TRUE);
- if (This->activeContext->current_fbo) {
- context_bind_fbo(This->activeContext, GL_FRAMEBUFFER_EXT, &This->activeContext->current_fbo->id);
- } else {
- context_bind_fbo(This->activeContext, GL_FRAMEBUFFER_EXT, NULL);
- }
-
/* If we switched from GL_BACK to GL_FRONT above, we need to switch back here */
if (dst_swapchain && dst_surface == ((IWineD3DSwapChainImpl *)dst_swapchain)->frontBuffer
&& ((IWineD3DSwapChainImpl *)dst_swapchain)->backBuffer) {
--
1.6.0.6
More information about the wine-patches
mailing list