wined3d: Create CPU blitter also for GDI render.
Fixes a regression introduced in cad4badbcf
.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a2c0d2bb37
commit
6dd1ca28bf
|
@ -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)
|
||||||
{
|
{
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue