diff --git a/gfx/layers/opengl/ImageLayerOGL.cpp b/gfx/layers/opengl/ImageLayerOGL.cpp index e3056d5f215d..b9662663cce2 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);