summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-11-27 20:38:42 +0000
committerRobert Bragg <robert@linux.intel.com>2012-12-04 19:38:24 +0000
commit8e201574b9c35847aa4e999a391741538a0b356b (patch)
tree4bbc00d01c3447ece64d338663c72e1f566eddf5
parent675793d1d42d40c4a4ce2b749b17a2b8b2057aad (diff)
downloadcogl-8e201574b9c35847aa4e999a391741538a0b356b.tar.gz
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.
-rw-r--r--cogl/cogl-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-journal.c b/cogl/cogl-journal.c
index 51d859e1..aa45acb9 100644
--- a/cogl/cogl-journal.c
+++ b/cogl/cogl-journal.c
@@ -1040,7 +1040,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];