mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-14 23:50:32 +01:00
gl: Use GLfloat instead of float in gl*Array() functions
This commit is contained in:
parent
e4f84f97b2
commit
64662be4ef
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue