Module: wine Branch: master Commit: 3a63552fd1880c973f28baf8f9f7a29fd24d1412 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a63552fd1880c973f28baf8f9...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Jul 20 12:21:48 2009 +0200
wined3d: Skip some unnecessary FBO binds.
---
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) {