mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 739095 - Offscreen context without offscreen texture does not need YFlip. r=jgilbert
This commit is contained in:
parent
5e436d4872
commit
c6605360b3
@ -116,7 +116,7 @@ CanvasLayerOGL::Initialize(const Data& aData)
|
||||
mCanvasGLContext = aData.mGLContext;
|
||||
mGLBufferIsPremultiplied = aData.mGLBufferIsPremultiplied;
|
||||
|
||||
mNeedsYFlip = true;
|
||||
mNeedsYFlip = mCanvasGLContext->GetOffscreenTexture() != 0;
|
||||
} else {
|
||||
NS_WARNING("CanvasLayerOGL::Initialize called without surface or GL context!");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user