[clutter/clutter-1.6] cogl-texture-pixmap-x11: Fix the can_hardware_repeat wrapper



commit de1114ffd9b65088f5119a9b7674d1bb8ff98a0e
Author: Neil Roberts <neil linux intel com>
Date:   Fri Jun 10 18:48:44 2011 +0100

    cogl-texture-pixmap-x11: Fix the can_hardware_repeat wrapper
    
    The wrapper for the can_hardware_repeat had a cut and paste error so
    it would call the wrong function on the child texture.
    
    Many thanks to Owen Taylor for finding this bug.
    
    This is backported from 6d1371e0e9291a on the Cogl master branch.

 clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c b/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c
index 58bef60..83e369a 100644
--- a/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c
+++ b/clutter/cogl/cogl/winsys/cogl-texture-pixmap-x11.c
@@ -1219,7 +1219,7 @@ _cogl_texture_pixmap_x11_can_hardware_repeat (CoglTexture *tex)
 
   child_tex = _cogl_texture_pixmap_x11_get_texture (tex_pixmap);
 
-  return cogl_texture_get_max_waste (child_tex);
+  return _cogl_texture_can_hardware_repeat (child_tex);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]