From 3b70e0b6b7a3c01c9e9d0c15f39b676877eee119 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 29 May 2009 11:52:21 +0100 Subject: [PATCH] [pango-display-list] Use the CoglAttributeType macros instead of GL_FLOAT Cogl now has an enum for the VBO attribute type so we should use that instead of the GL enums. --- clutter/pango/cogl-pango-display-list.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clutter/pango/cogl-pango-display-list.c b/clutter/pango/cogl-pango-display-list.c index 6d46fa8..70f6405 100644 --- a/clutter/pango/cogl-pango-display-list.c +++ b/clutter/pango/cogl-pango-display-list.c @@ -231,11 +231,13 @@ _cogl_pango_display_list_render_texture (CoglHandle material, { CoglHandle vb = cogl_vertex_buffer_new (node->d.texture.verts->len); - cogl_vertex_buffer_add (vb, "gl_Vertex", 2, GL_FLOAT, FALSE, + cogl_vertex_buffer_add (vb, "gl_Vertex", 2, + COGL_ATTRIBUTE_TYPE_FLOAT, FALSE, sizeof (CoglPangoDisplayListVertex), &g_array_index (node->d.texture.verts, CoglPangoDisplayListVertex, 0).x); - cogl_vertex_buffer_add (vb, "gl_MultiTexCoord0", 2, GL_FLOAT, FALSE, + cogl_vertex_buffer_add (vb, "gl_MultiTexCoord0", 2, + COGL_ATTRIBUTE_TYPE_FLOAT, FALSE, sizeof (CoglPangoDisplayListVertex), &g_array_index (node->d.texture.verts, CoglPangoDisplayListVertex, -- 2.7.4