[Cogl] [PATCH] journal: don't call cogl_attribute_buffer_new with NULL

Robert Bragg robert at sixbynine.org
Wed Nov 28 07:59:27 PST 2012


From: Robert Bragg <robert at linux.intel.com>

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.
---
 cogl/cogl-journal.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cogl/cogl-journal.c b/cogl/cogl-journal.c
index 51d859e..aa45acb 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];
 
-- 
1.7.7.6



More information about the Cogl mailing list