From ce24f58bf8d50e5e6be9a33cc33d85694b98743f Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Thu, 13 Jan 2011 15:20:46 +0200 Subject: [PATCH] Bug 618788 - Not initialized used in CairoImageOGL::SetData r=roc a=approval2.0 --- gfx/layers/opengl/ImageLayerOGL.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gfx/layers/opengl/ImageLayerOGL.cpp b/gfx/layers/opengl/ImageLayerOGL.cpp index e3056d5f215..b9662663cce 100644 --- a/gfx/layers/opengl/ImageLayerOGL.cpp +++ b/gfx/layers/opengl/ImageLayerOGL.cpp @@ -681,11 +681,9 @@ CairoImageOGL::SetData(const CairoImage::Data &aData) GLuint tex = mTexture.GetTextureID(); - if (mSize != aData.mSize) { - gl->fActiveTexture(LOCAL_GL_TEXTURE0); - InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize); - mSize = aData.mSize; - } + gl->fActiveTexture(LOCAL_GL_TEXTURE0); + InitTexture(gl, tex, LOCAL_GL_RGBA, aData.mSize); + mSize = aData.mSize; if (!mASurfaceAsGLContext) { mASurfaceAsGLContext = GLContextProvider::CreateForNativePixmapSurface(aData.mSurface);