diff options
author | Benjamin Otte <otte@redhat.com> | 2010-04-22 22:05:03 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-23 21:46:04 +0200 |
commit | 64662be4ef3851d21658e5fdb2efb6806b45eba8 (patch) | |
tree | 7e1809d3098546e853720ef002fe4383e24061e2 | |
parent | e4f84f97b2f5d37bc1fb7dd510df733053ffe624 (diff) |
gl: Use GLfloat instead of float in gl*Array() functions
-rw-r--r-- | src/cairo-gl-surface.c | 6 |
1 files 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); |