From 8f51d290fd3237cec3ad2b567a9883cb49022e30 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Fri, 29 Mar 2019 08:14:12 +1100 Subject: [PATCH] Updated ddraw-Rendering_Targets patchset --- ...w-Create-rendering-targets-in-video-memory-if-po.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/ddraw-Rendering_Targets/0001-ddraw-Create-rendering-targets-in-video-memory-if-po.patch b/patches/ddraw-Rendering_Targets/0001-ddraw-Create-rendering-targets-in-video-memory-if-po.patch index 24f8e99a..dfd97a68 100644 --- a/patches/ddraw-Rendering_Targets/0001-ddraw-Create-rendering-targets-in-video-memory-if-po.patch +++ b/patches/ddraw-Rendering_Targets/0001-ddraw-Create-rendering-targets-in-video-memory-if-po.patch @@ -192,10 +192,10 @@ index 8190442..c73981b 100644 + * specified location and try to create rendering targets in video memory if + * possible. + */ -+ if ((desc->ddsCaps.dwCaps & DDSCAPS_3DDEVICE) && -+ SUCCEEDED(hr = wined3d_check_device_format(ddraw->wined3d, WINED3DADAPTER_DEFAULT, -+ WINED3D_DEVICE_TYPE_HAL, mode.format_id, 0, -+ bind_flags, WINED3D_RTYPE_TEXTURE_2D, wined3d_desc.format))) ++ if (bind_flags ++ && SUCCEEDED(hr = wined3d_check_device_format(ddraw->wined3d, WINED3DADAPTER_DEFAULT, ++ WINED3D_DEVICE_TYPE_HAL, mode.format_id, 0, ++ bind_flags, WINED3D_RTYPE_TEXTURE_2D, wined3d_desc.format))) + { + FIXME("Application wants to create rendering target in system memory, using video memory instead\n"); + wined3d_desc.bind_flags = bind_flags;