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

oldstable
Henri Verbeet 2009-06-25 10:24:58 +02:00 committed by Alexandre Julliard
parent 5dcbc40581
commit 4a137815db
1 changed files with 3 additions and 0 deletions

View File

@ -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)) {