Bug 648741 - Correctly bind pixmaps to textures during the draw call on X11 accelerated layers. r=bjacob

This commit is contained in:
Matt Woodrow 2011-04-19 10:50:54 +12:00
parent af306501e0
commit 66e0bad817
2 changed files with 3 additions and 3 deletions

View File

@ -210,8 +210,8 @@ ThebesLayerBufferOGL::RenderTo(const nsIntPoint& aOffset,
}
// Bind textures.
TextureImage::ScopedBindTexture(mTexImage, LOCAL_GL_TEXTURE0);
TextureImage::ScopedBindTexture(mTexImageOnWhite, LOCAL_GL_TEXTURE1);
TextureImage::ScopedBindTexture texBind(mTexImage, LOCAL_GL_TEXTURE0);
TextureImage::ScopedBindTexture texOnWhiteBind(mTexImageOnWhite, LOCAL_GL_TEXTURE1);
float xres = mLayer->GetXResolution();
float yres = mLayer->GetYResolution();

View File

@ -609,7 +609,7 @@ public:
return mUpdateSurface.get();
}
virtual PRBool InUpdate() const { return !mInUpdate; }
virtual PRBool InUpdate() const { return mInUpdate; }
private:
TextureImageGLX(GLuint aTexture,