mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
journal: don't call cogl_attribute_buffer_new with NULL
It is considered an error to pass a NULL data pointer to cogl_attribute_buffer_new so we now call cogl_attribute_buffer_new_with_size instead. (cherry picked from commit 8e201574b9c35847aa4e999a391741538a0b356b)
This commit is contained in:
parent
5d796f0a4c
commit
5bc6121cbf
@ -1050,7 +1050,7 @@ create_attribute_buffer (CoglJournal *journal,
|
||||
really any point in using the pool so we'll just allocate the
|
||||
buffer directly */
|
||||
if (!(ctx->private_feature_flags & COGL_PRIVATE_FEATURE_VBOS))
|
||||
return cogl_attribute_buffer_new (ctx, n_bytes, NULL);
|
||||
return cogl_attribute_buffer_new_with_size (ctx, n_bytes);
|
||||
|
||||
vbo = journal->vbo_pool[journal->next_vbo_in_pool];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user