[cairo-commit] src/cairo-gl.h src/cairo-gl-surface.c

Benjamin Otte company at kemper.freedesktop.org
Fri Jul 9 03:54:44 PDT 2010


 src/cairo-gl-surface.c |    2 +-
 src/cairo-gl.h         |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit dbb386d3c0aa9e7534d333cf3dbcfc2aaeac05d3
Author: Benjamin Otte <otte at redhat.com>
Date:   Fri Jul 9 12:49:10 2010 +0200

    gl: Use unsigned int instead of GLuint
    
    GLuint is not defined in cairo-gl.h. If unsigned int is not compatible
    enough to GLuint, we might consider to use #include <GL/gl.h> instead.

diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index a1488ab..e2ad7e4 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -408,7 +408,7 @@ slim_hidden_def (cairo_gl_surface_create);
 cairo_surface_t *
 cairo_gl_surface_create_for_texture (cairo_device_t	*abstract_device,
 				     cairo_content_t	 content,
-				     GLuint		 tex,
+				     unsigned int	 tex,
 				     int		 width,
 				     int		 height)
 {
diff --git a/src/cairo-gl.h b/src/cairo-gl.h
index e61c1f8..131d114 100644
--- a/src/cairo-gl.h
+++ b/src/cairo-gl.h
@@ -48,7 +48,8 @@ cairo_gl_surface_create (cairo_device_t *device,
 cairo_public cairo_surface_t *
 cairo_gl_surface_create_for_texture (cairo_device_t *abstract_device,
 				     cairo_content_t content,
-				     GLuint tex, int width, int height);
+				     unsigned int tex,
+                                     int width, int height);
 cairo_public void
 cairo_gl_surface_set_size (cairo_surface_t *surface, int width, int height);
 


More information about the cairo-commit mailing list