mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1108162 - Don't reuse a tile's front buffer if it just switched from non-component-alpha to compoenent-alpha. r=jrmuizel
This commit is contained in:
parent
55ab94f4b0
commit
69017d515d
@ -719,7 +719,8 @@ TileClient::GetBackBuffer(const nsIntRegion& aDirtyRegion,
|
||||
// Try to re-use the front-buffer if possible
|
||||
if (mFrontBuffer &&
|
||||
mFrontBuffer->HasInternalBuffer() &&
|
||||
mFrontLock->GetReadCount() == 1) {
|
||||
mFrontLock->GetReadCount() == 1 &&
|
||||
!(aMode == SurfaceMode::SURFACE_COMPONENT_ALPHA && !mFrontBufferOnWhite)) {
|
||||
// If we had a backbuffer we no longer care about it since we'll
|
||||
// re-use the front buffer.
|
||||
DiscardBackBuffer();
|
||||
|
Loading…
Reference in New Issue
Block a user