On Tue, 6 Apr 2021 at 17:44, Jan Sikorski jsikorski@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.