Commit 5dcbc405 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 94cd8656
...@@ -472,6 +472,10 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource ...@@ -472,6 +472,10 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
This->lastActiveRenderTarget = (IWineD3DSurface *)0xdeadcafe; This->lastActiveRenderTarget = (IWineD3DSurface *)0xdeadcafe;
} }
} }
else if (This->d3d_initialized)
{
ActivateContext(This, This->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
}
for (i = 0; i < This->numContexts; ++i) for (i = 0; i < This->numContexts; ++i)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment