Henri Verbeet : wined3d: Use the FBO cache in context_apply_blit_state().

Alexandre Julliard julliard at winehq.org
Thu May 6 11:13:21 CDT 2010


Module: wine
Branch: master
Commit: 9982a46296910bfec288930455a19bf9224d27cd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9982a46296910bfec288930455a19bf9224d27cd

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed May  5 18:22:34 2010 +0200

wined3d: Use the FBO cache in context_apply_blit_state().

---

 dlls/wined3d/context.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 9815ce3..ae4f754 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2003,9 +2003,7 @@ void context_apply_blit_state(struct wined3d_context *context, IWineD3DDeviceImp
             surface_internal_preload(context->current_rt, SRGB_RGB);
 
             ENTER_GL();
-            context_bind_fbo(context, GL_FRAMEBUFFER, &context->dst_fbo);
-            context_attach_surface_fbo(context, GL_FRAMEBUFFER, 0, context->current_rt);
-            context_attach_depth_stencil_fbo(context, GL_FRAMEBUFFER, NULL, FALSE);
+            context_apply_fbo_state_blit(context, GL_FRAMEBUFFER, context->current_rt, NULL);
             LEAVE_GL();
         }
         else




More information about the wine-cvs mailing list