[PATCH v4 4/4] wined3d: Handle typeless resolve in the FBO blitter.
Henri Verbeet
hverbeet at gmail.com
Fri Apr 9 07:57:41 CDT 2021
On Tue, 6 Apr 2021 at 17:44, Jan Sikorski <jsikorski at codeweavers.com> wrote:
> + hr = wined3d_texture_create(device, &desc, 1, 1, 0, NULL, NULL, &wined3d_null_parent_ops,
> + &dst_texture);
> + if (FAILED(hr))
> + {
> + ERR("Failed to create staging texture, hr %#x.\n", hr);
> + if (src_staging_texture)
> + wined3d_texture_decref(src_staging_texture);
> + return;
> + }
I think we should cleanup potential staging resources in the "if
(!context_gl->valid)" a bit below as well, perhaps with a "goto done;"
which we could us here as well.
More information about the wine-devel
mailing list