mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 791364: Free canvas front buffers that are surface descriptors. r=gal
This commit is contained in:
parent
5bb9436e76
commit
4935ae526e
@ -428,6 +428,8 @@ ShadowCanvasLayerOGL::DestroyFrontBuffer()
|
|||||||
SharedTextureDescriptor texDescriptor = mFrontBufferDescriptor.get_SharedTextureDescriptor();
|
SharedTextureDescriptor texDescriptor = mFrontBufferDescriptor.get_SharedTextureDescriptor();
|
||||||
gl()->ReleaseSharedHandle(texDescriptor.shareType(), texDescriptor.handle());
|
gl()->ReleaseSharedHandle(texDescriptor.shareType(), texDescriptor.handle());
|
||||||
mFrontBufferDescriptor = SurfaceDescriptor();
|
mFrontBufferDescriptor = SurfaceDescriptor();
|
||||||
|
} else if (IsSurfaceDescriptorValid(mFrontBufferDescriptor)) {
|
||||||
|
mAllocator->DestroySharedSurface(&mFrontBufferDescriptor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user