Commit 6dd1ca28 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

wined3d: Create CPU blitter also for GDI render.

Fixes a regression introduced in cad4badb. Signed-off-by: 's avatarSebastian Lackner <sebastian@fds-team.de> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a2c0d2bb
...@@ -1164,6 +1164,15 @@ HRESULT CDECL wined3d_device_init_gdi(struct wined3d_device *device, ...@@ -1164,6 +1164,15 @@ HRESULT CDECL wined3d_device_init_gdi(struct wined3d_device *device,
goto err_out; goto err_out;
} }
device->swapchains[0] = swapchain; device->swapchains[0] = swapchain;
if (!(device->blitter = wined3d_cpu_blitter_create()))
{
ERR("Failed to create CPU blitter.\n");
HeapFree(GetProcessHeap(), 0, device->swapchains);
device->swapchain_count = 0;
goto err_out;
}
return WINED3D_OK; return WINED3D_OK;
err_out: err_out:
...@@ -1252,6 +1261,8 @@ HRESULT CDECL wined3d_device_uninit_gdi(struct wined3d_device *device) ...@@ -1252,6 +1261,8 @@ HRESULT CDECL wined3d_device_uninit_gdi(struct wined3d_device *device)
{ {
unsigned int i; unsigned int i;
device->blitter->ops->blitter_destroy(device->blitter, NULL);
for (i = 0; i < device->swapchain_count; ++i) for (i = 0; i < device->swapchain_count; ++i)
{ {
TRACE("Releasing the implicit swapchain %u.\n", i); TRACE("Releasing the implicit swapchain %u.\n", i);
......
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