mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 892285 - Only unlock gralloc surfaces if they were locked, r=bas
This commit is contained in:
parent
b9a4a09408
commit
e00f620c90
@ -511,12 +511,13 @@ DeprecatedTextureClientShmem::LockDrawTarget()
|
|||||||
void
|
void
|
||||||
DeprecatedTextureClientShmem::Unlock()
|
DeprecatedTextureClientShmem::Unlock()
|
||||||
{
|
{
|
||||||
|
if (mSurface) {
|
||||||
mSurface = nullptr;
|
mSurface = nullptr;
|
||||||
mSurfaceAsImage = nullptr;
|
mSurfaceAsImage = nullptr;
|
||||||
mDrawTarget = nullptr;
|
|
||||||
|
|
||||||
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
|
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
|
||||||
}
|
}
|
||||||
|
mDrawTarget = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
gfxImageSurface*
|
gfxImageSurface*
|
||||||
DeprecatedTextureClientShmem::LockImageSurface()
|
DeprecatedTextureClientShmem::LockImageSurface()
|
||||||
|
Loading…
Reference in New Issue
Block a user