mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 648741 - Correctly bind pixmaps to textures during the draw call on X11 accelerated layers. r=bjacob
This commit is contained in:
parent
af306501e0
commit
66e0bad817
@ -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();
|
||||
|
@ -609,7 +609,7 @@ public:
|
||||
return mUpdateSurface.get();
|
||||
}
|
||||
|
||||
virtual PRBool InUpdate() const { return !mInUpdate; }
|
||||
virtual PRBool InUpdate() const { return mInUpdate; }
|
||||
|
||||
private:
|
||||
TextureImageGLX(GLuint aTexture,
|
||||
|
Loading…
Reference in New Issue
Block a user