Henri Verbeet : wined3d: Make sure we have an active GL context in IWineD3DDeviceImpl_SetCursorProperties ().

Alexandre Julliard julliard at winehq.org
Thu Jun 25 08:13:56 CDT 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Jun 25 10:24:58 2009 +0200

wined3d: Make sure we have an active GL context in IWineD3DDeviceImpl_SetCursorProperties().

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 3ad0625..9959aea 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6708,6 +6708,9 @@ static HRESULT  WINAPI  IWineD3DDeviceImpl_SetCursorProperties(IWineD3DDevice* i
                 for(i = 0; i < height; i++)
                     memcpy(&mem[width * bpp * i], &bits[rect.Pitch * i], width * bpp);
                 IWineD3DSurface_UnlockRect(pCursorBitmap);
+
+                ActivateContext(This, This->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
+
                 ENTER_GL();
 
                 if(GL_SUPPORT(APPLE_CLIENT_STORAGE)) {




More information about the wine-cvs mailing list