mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
[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.
This commit is contained in:
parent
97921a7d13
commit
3b70e0b6b7
@ -231,11 +231,13 @@ _cogl_pango_display_list_render_texture (CoglHandle material,
|
|||||||
{
|
{
|
||||||
CoglHandle vb = cogl_vertex_buffer_new (node->d.texture.verts->len);
|
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),
|
sizeof (CoglPangoDisplayListVertex),
|
||||||
&g_array_index (node->d.texture.verts,
|
&g_array_index (node->d.texture.verts,
|
||||||
CoglPangoDisplayListVertex, 0).x);
|
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),
|
sizeof (CoglPangoDisplayListVertex),
|
||||||
&g_array_index (node->d.texture.verts,
|
&g_array_index (node->d.texture.verts,
|
||||||
CoglPangoDisplayListVertex,
|
CoglPangoDisplayListVertex,
|
||||||
|
Loading…
Reference in New Issue
Block a user