From d82cbea6291f0d19565792b7aa4d08c32ff24698 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 20 Sep 2016 11:41:39 +0200 Subject: [PATCH] wined3d: Don't require a specific context in wined3d_device_init_3d(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 8f24506934d..2db1af87dcb 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1075,7 +1075,7 @@ HRESULT CDECL wined3d_device_init_3d(struct wined3d_device *device, device->swapchains[0] = swapchain; device_init_swapchain_state(device, swapchain); - context = context_acquire(device, swapchain->front_buffer->sub_resources[0].u.surface); + context = context_acquire(device, NULL); create_dummy_textures(device, context); create_default_samplers(device);