Henri Verbeet : wined3d: Make sure we have an active GL context in context_resource_released().
Alexandre Julliard
julliard at winehq.org
Thu Jun 25 08:13:56 CDT 2009
Module: wine
Branch: master
Commit: 5dcbc40581f0fc355deb935287e7e8c3f89c25ce
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5dcbc40581f0fc355deb935287e7e8c3f89c25ce
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jun 25 10:24:57 2009 +0200
wined3d: Make sure we have an active GL context in context_resource_released().
---
dlls/wined3d/context.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 5b3cecb..fa67872 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -472,6 +472,10 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
This->lastActiveRenderTarget = (IWineD3DSurface *)0xdeadcafe;
}
}
+ else if (This->d3d_initialized)
+ {
+ ActivateContext(This, This->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
+ }
for (i = 0; i < This->numContexts; ++i)
{
More information about the wine-cvs
mailing list