Commit a05dcd91 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Handle shader_arb_free_context_data() during context creation.

parent 82780d6b
......@@ -5052,8 +5052,12 @@ static BOOL shader_arb_allocate_context_data(struct wined3d_context *context)
static void shader_arb_free_context_data(struct wined3d_context *context)
{
struct shader_arb_priv *priv = context->swapchain->device->shader_priv;
struct shader_arb_priv *priv;
if (!context->swapchain)
return;
priv = context->swapchain->device->shader_priv;
if (priv->last_context == context)
priv->last_context = NULL;
}
......
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