[PATCH v2 03/10] ddraw: Create the second texture for system memory bindable surfaces.
Henri Verbeet
hverbeet at gmail.com
Wed Mar 10 11:31:11 CST 2021
On Tue, 9 Mar 2021 at 10:57, Paul Gofman <pgofman at codeweavers.com> wrote:
> @@ -6405,9 +6530,8 @@ HRESULT ddraw_surface_create(struct ddraw *ddraw, const DDSURFACEDESC2 *surface_
> * visible on the screen. The game Nox is such an application,
> * Commandos: Behind Enemy Lines is another. Setting
> * WINED3D_TEXTURE_CREATE_GET_DC_LENIENT will ensure this. */
> - if (FAILED(hr = wined3d_texture_create(ddraw->wined3d_device, &wined3d_desc, layers, levels,
> - WINED3D_TEXTURE_CREATE_GET_DC_LENIENT, NULL, texture,
> - &ddraw_texture_wined3d_parent_ops, &wined3d_texture)))
> + if (FAILED(hr = ddraw_surface_create_wined3d_texture(desc, ddraw->wined3d_device, &wined3d_desc, layers, levels,
> + texture, &wined3d_texture)))
The comment above seems out of place now, it should probably move into
ddraw_surface_create_wined3d_texture() as well.
More information about the wine-devel
mailing list