wined3d: Present requires the swapchain's context.

This commit is contained in:
Stefan Dösinger 2007-07-26 19:13:11 +02:00 committed by Alexandre Julliard
parent dbd338c018
commit 38c7e9356e
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
ENTER_GL();
ActivateContext(This->wineD3DDevice, This->wineD3DDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
ActivateContext(This->wineD3DDevice, This->backBuffer[0], CTXUSAGE_RESOURCELOAD);
/* Render the cursor onto the back buffer, using our nifty directdraw blitting code :-) */
if(This->wineD3DDevice->bCursorVisible && This->wineD3DDevice->cursorTexture) {