Commit 9a373586 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Share more swapchain setup with the "no3d" adapter in…

wined3d: Share more swapchain setup with the "no3d" adapter in wined3d_device_set_implicit_swapchain(). Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4f635833
......@@ -1151,23 +1151,24 @@ HRESULT wined3d_device_set_implicit_swapchain(struct wined3d_device *device, str
{
if (FAILED(hr = wined3d_device_create_primary_opengl_context(device)))
goto err_out;
device_init_swapchain_state(device, swapchain);
TRACE("All defaults now set up.\n");
device->d3d_initialized = TRUE;
}
/* Clear the screen */
if (device->back_buffer_view)
clear_flags |= WINED3DCLEAR_TARGET;
if (swapchain_desc->enable_auto_depth_stencil)
clear_flags |= WINED3DCLEAR_ZBUFFER | WINED3DCLEAR_STENCIL;
if (clear_flags)
wined3d_device_clear(device, 0, NULL, clear_flags, &black, 1.0f, 0);
device_init_swapchain_state(device, swapchain);
device->d3d_initialized = TRUE;
TRACE("All defaults now set up.\n");
if (wined3d_settings.logo)
device_load_logo(device, wined3d_settings.logo);
}
/* Clear the screen. */
if (device->back_buffer_view)
clear_flags |= WINED3DCLEAR_TARGET;
if (swapchain_desc->enable_auto_depth_stencil)
clear_flags |= WINED3DCLEAR_ZBUFFER | WINED3DCLEAR_STENCIL;
if (clear_flags)
wined3d_device_clear(device, 0, NULL, clear_flags, &black, 1.0f, 0);
if (wined3d_settings.logo)
device_load_logo(device, wined3d_settings.logo);
return WINED3D_OK;
......
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