wined3d: Only recreate GL contexts when we're using GL for rendering in wined3d_device_reset().

oldstable
Henri Verbeet 2011-12-04 15:50:13 +01:00 committed by Alexandre Julliard
parent df446ae4fe
commit 31bf03d8a1
1 changed files with 4 additions and 2 deletions

View File

@ -5604,6 +5604,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
}
}
if (device->d3d_initialized)
delete_opengl_contexts(device, swapchain);
if (!swapchain_desc->windowed != !swapchain->desc.windowed
@ -5678,6 +5679,7 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device,
swapchain_update_render_to_fbo(swapchain);
swapchain_update_draw_bindings(swapchain);
if (device->d3d_initialized)
hr = create_primary_opengl_context(device, swapchain);
wined3d_swapchain_decref(swapchain);