Henri Verbeet : wined3d: Remove a redundant ActivateContext() call.

Alexandre Julliard julliard at winehq.org
Mon Oct 26 10:08:33 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon Oct 26 10:12:15 2009 +0100

wined3d: Remove a redundant ActivateContext() call.

---

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

diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index bbf95d7..c82fe17 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -802,10 +802,6 @@ static void STDMETHODCALLTYPE buffer_PreLoad(IWineD3DBuffer *iface)
         /* Nothing to do because we locked directly into the vbo */
         if(!(This->flags & WINED3D_BUFFER_DOUBLEBUFFER)) return;
 
-        if (!device->isInDraw)
-        {
-            ActivateContext(device, NULL, CTXUSAGE_RESOURCELOAD);
-        }
         ENTER_GL();
         GL_EXTCALL(glBindBufferARB(This->buffer_type_hint, This->buffer_object));
         checkGLcall("glBindBufferARB");




More information about the wine-cvs mailing list