wined3d: Initialize "context[0]" in IWineD3DDeviceImpl_CreateSwapChain() when not using OpenGL (Valgrind).

This commit is contained in:
Henri Verbeet 2009-11-04 10:37:17 +01:00 committed by Alexandre Julliard
parent b74642ff0b
commit 8d351a1141

View File

@ -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