Commit 8d351a11 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Initialize "context[0]" in IWineD3DDeviceImpl_CreateSwapChain() when…

wined3d: Initialize "context[0]" in IWineD3DDeviceImpl_CreateSwapChain() when not using OpenGL (Valgrind).
parent b74642ff
......@@ -1211,6 +1211,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice *iface,
object->win_handle, object->context[0]->glCtx);
}
}
else
{
object->context[0] = NULL;
}
/*********************
* Create the back, front and stencil buffers
......
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