From 64662be4ef3851d21658e5fdb2efb6806b45eba8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 22 Apr 2010 22:05:03 +0200 Subject: gl: Use GLfloat instead of float in gl*Array() functions --- src/cairo-gl-surface.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index b8782354..1f6fd9ba 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -797,7 +797,7 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst, } } else { GLuint tex; - float vertices[8], texcoords[8]; + GLfloat vertices[8], texcoords[8]; if (ctx->using_glsl) { cairo_gl_shader_program_t *program; @@ -857,11 +857,11 @@ _cairo_gl_surface_draw_image (cairo_gl_surface_t *dst, texcoords[7] = height; } - glVertexPointer (2, GL_FLOAT, sizeof (float) * 2, vertices); + glVertexPointer (2, GL_FLOAT, sizeof (GLfloat) * 2, vertices); glEnableClientState (GL_VERTEX_ARRAY); glClientActiveTexture (GL_TEXTURE0); - glTexCoordPointer (2, GL_FLOAT, sizeof (float) * 2, texcoords); + glTexCoordPointer (2, GL_FLOAT, sizeof (GLfloat) * 2, texcoords); glEnableClientState (GL_TEXTURE_COORD_ARRAY); glDrawArrays (GL_QUADS, 0, 4); -- cgit v1.2.3