From c6605360b37c3c2ac365f436b193722594347f51 Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Mon, 26 Mar 2012 12:56:10 -0400 Subject: [PATCH] Bug 739095 - Offscreen context without offscreen texture does not need YFlip. r=jgilbert --- gfx/layers/opengl/CanvasLayerOGL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/opengl/CanvasLayerOGL.cpp b/gfx/layers/opengl/CanvasLayerOGL.cpp index eadd8ea24a9..73cdf07150f 100644 --- a/gfx/layers/opengl/CanvasLayerOGL.cpp +++ b/gfx/layers/opengl/CanvasLayerOGL.cpp @@ -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;