Fixing bustage

This commit is contained in:
Robert O'Callahan 2010-06-18 21:40:11 +12:00
parent f3ea04af03
commit a8f155672f

View File

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