H. Verbeet : wined3d: glXSwapBuffers needs a GLX context.
Module: wine Branch: master Commit: 27853950807a4725f0997d85127d2f092a170627 URL: http://source.winehq.org/git/wine.git/?a=commit;h=27853950807a4725f0997d8512... Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Jul 19 00:20:15 2007 +0200 wined3d: glXSwapBuffers needs a GLX context. --- dlls/wined3d/swapchain.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index d776b4e..059120d 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -153,7 +153,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO ENTER_GL(); - /* Does glXSwapBuffers need a glx context? I don't think so. Blt will activate its own context if needed */ + ActivateContext(This->wineD3DDevice, This->wineD3DDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD); /* Render the cursor onto the back buffer, using our nifty directdraw blitting code :-) */ if(This->wineD3DDevice->bCursorVisible && This->wineD3DDevice->cursorTexture) {
participants (1)
-
Alexandre Julliard