27 May
2022
27 May
'22
9:21 a.m.
Nikolay Sivov <nsivov(a)codeweavers.com> wrote:
@@ -66,6 +66,8 @@ static ULONG STDMETHODCALLTYPE d2d_bitmap_Release(ID2D1Bitmap1 *iface)
if (!refcount) { + if (bitmap->staging_resource) + ID2D1Bitmap1_Unmap(iface); if (bitmap->srv) ID3D11ShaderResourceView_Release(bitmap->srv); if (bitmap->rtv) Is it necessary to unmap?
Probably not, although I was getting errors from wined3d with ::Unmap() being a stub. Perhaps that was a result of the staging texture leak. Many thanks for the helpful reviews. -- Dmitry.