Bug 739095 - Offscreen context without offscreen texture does not need YFlip. r=jgilbert

This commit is contained in:
Oleg Romashin 2012-03-26 12:56:10 -04:00
parent 5e436d4872
commit c6605360b3

View File

@ -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;