Bug 738158, part 2: Set the wrap mode for cairo images. r=ajuma
authorChris Jones <jones.chris.g@gmail.com>
Thu, 22 Mar 2012 01:02:59 -0700
changeset 91877 abd4103173a201dd8f24176d8c6f851f32c2067e
parent 91876 19ed27abdd23413a44f07ae3199a0fd954f0dc19
child 91878 d34c8cafbdb1beeda225a9078453dacec70e8a3a
push idunknown
push userunknown
push dateunknown
reviewersajuma
bugs738158
milestone14.0a1
Bug 738158, part 2: Set the wrap mode for cairo images. r=ajuma
gfx/layers/opengl/ImageLayerOGL.cpp
--- a/gfx/layers/opengl/ImageLayerOGL.cpp
+++ b/gfx/layers/opengl/ImageLayerOGL.cpp
@@ -552,16 +552,18 @@ ImageLayerOGL::AllocateTexturesCairo(Cai
   }
 
   mozilla::gl::GLContext *gl = texture.GetGLContext();
   gl->MakeCurrent();
 
   GLuint tex = texture.GetTextureID();
   gl->fActiveTexture(LOCAL_GL_TEXTURE0);
 
+  SetClamping(gl, tex);
+
 #if defined(MOZ_WIDGET_GTK2) && !defined(MOZ_PLATFORM_MAEMO)
   if (sGLXLibrary.SupportsTextureFromPixmap(aImage->mSurface)) {
     if (aImage->mSurface->GetContentType() == gfxASurface::CONTENT_COLOR_ALPHA) {
       backendData->mLayerProgram = gl::RGBALayerProgramType;
     } else {
       backendData->mLayerProgram = gl::RGBXLayerProgramType;
     }