From d547fc3e1753a0938bf2182168066560544b4df5 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Fri, 18 Jun 2010 21:40:11 +1200 Subject: [PATCH] Fixing bustage --- gfx/layers/opengl/CanvasLayerOGL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/layers/opengl/CanvasLayerOGL.cpp b/gfx/layers/opengl/CanvasLayerOGL.cpp index 223e0dd45069..4b9f6b5550a5 100644 --- a/gfx/layers/opengl/CanvasLayerOGL.cpp +++ b/gfx/layers/opengl/CanvasLayerOGL.cpp @@ -180,7 +180,8 @@ CanvasLayerOGL::Updated(const nsIntRect& aRect) } } else if (mCanvasGLContext) { // we just need to create a texture that we'll use, the first time through - if (mTexture == 0) { + PRBool newTexture = mTexture == 0; + if (newTexture) { gl()->fGenTextures(1, (GLuint*)&mTexture); gl()->fBindTexture(LOCAL_GL_TEXTURE_2D, mTexture);