[pango-display-list] Use the CoglAttributeType macros instead of GL_FLOAT
authorNeil Roberts <neil@linux.intel.com>
Fri, 29 May 2009 10:52:21 +0000 (11:52 +0100)
committerNeil Roberts <neil@linux.intel.com>
Mon, 1 Jun 2009 13:50:52 +0000 (14:50 +0100)
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

index 6d46fa8..70f6405 100644 (file)
@@ -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,