wined3d: glXSwapBuffers needs a GLX context

H. Verbeet hverbeet at gmail.com
Wed Jul 18 17:20:15 CDT 2007


Gets the Lost Planet demo a bit further.

Changelog:
  - glXSwapBuffers needs a GLX context
-------------- next part --------------
---

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


More information about the wine-patches mailing list