mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
vertex-array: Adds data arg for _vertex_array_new()
This adds an optional data argument for cogl_vertex_array_new() since it seems that mostly every case where we use this API we follow up with a cogl_buffer_set_data() matching the size of the new array. This simplifies all those cases and whenever we want to delay uploading of data then NULL can simply be passed.
This commit is contained in:
@ -1132,7 +1132,8 @@ cogl_vertex_buffer_vbo_resolve (CoglVertexBuffer *buffer,
|
||||
|
||||
if (!found_target_vbo)
|
||||
{
|
||||
new_cogl_vbo->array = cogl_vertex_array_new (new_cogl_vbo->array_bytes);
|
||||
new_cogl_vbo->array = cogl_vertex_array_new (new_cogl_vbo->array_bytes,
|
||||
NULL);
|
||||
|
||||
upload_attributes (new_cogl_vbo);
|
||||
*final_vbos = g_list_prepend (*final_vbos, new_cogl_vbo);
|
||||
|
Reference in New Issue
Block a user