Henri Verbeet : wined3d: Let the context handle the draw buffer in swapchain_blit().

Alexandre Julliard julliard at winehq.org
Mon Dec 14 09:51:13 CST 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Dec 13 22:04:01 2009 +0100

wined3d: Let the context handle the draw buffer in swapchain_blit().

---

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

diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 3e4da78..c960ace 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -118,7 +118,7 @@ static inline void swapchain_blit(IWineD3DSwapChainImpl *This, struct wined3d_co
         context_attach_depth_stencil_fbo(context, GL_READ_FRAMEBUFFER, NULL, FALSE);
 
         context_bind_fbo(context, GL_DRAW_FRAMEBUFFER, NULL);
-        glDrawBuffer(GL_BACK);
+        context_set_draw_buffer(context, GL_BACK);
 
         glDisable(GL_SCISSOR_TEST);
         IWineD3DDeviceImpl_MarkStateDirty(This->device, STATE_RENDER(WINED3DRS_SCISSORTESTENABLE));
@@ -160,7 +160,7 @@ static inline void swapchain_blit(IWineD3DSwapChainImpl *This, struct wined3d_co
         glTexParameteri(backbuffer->texture_target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
         glTexParameteri(backbuffer->texture_target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
 
-        glDrawBuffer(GL_BACK);
+        context_set_draw_buffer(context, GL_BACK);
 
         /* Set the viewport to the destination rectandle, disable any projection
          * transformation set up by CTXUSAGE_BLIT, and draw a (-1,-1)-(1,1) quad.




More information about the wine-cvs mailing list