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,11 +511,12 @@ DeprecatedTextureClientShmem::LockDrawTarget()
|
||||
void
|
||||
DeprecatedTextureClientShmem::Unlock()
|
||||
{
|
||||
mSurface = nullptr;
|
||||
mSurfaceAsImage = nullptr;
|
||||
if (mSurface) {
|
||||
mSurface = nullptr;
|
||||
mSurfaceAsImage = nullptr;
|
||||
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
|
||||
}
|
||||
mDrawTarget = nullptr;
|
||||
|
||||
ShadowLayerForwarder::CloseDescriptor(mDescriptor);
|
||||
}
|
||||
|
||||
gfxImageSurface*
|
||||
|
Loading…
Reference in New Issue
Block a user