summaryrefslogtreecommitdiff
path: root/cogl/cogl-index-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-index-buffer.c')
-rw-r--r--cogl/cogl-index-buffer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cogl/cogl-index-buffer.c b/cogl/cogl-index-buffer.c
index 48c2c423..7a6b196c 100644
--- a/cogl/cogl-index-buffer.c
+++ b/cogl/cogl-index-buffer.c
@@ -42,20 +42,19 @@ COGL_BUFFER_DEFINE (IndexBuffer, index_buffer);
* indices buffer should be able to contain multiple ranges of indices
* which the wiki design doesn't currently consider. */
CoglIndexBuffer *
-cogl_index_buffer_new (gsize bytes)
+cogl_index_buffer_new (CoglContext *context, gsize bytes)
{
CoglIndexBuffer *indices = g_slice_new (CoglIndexBuffer);
gboolean use_malloc;
- _COGL_GET_CONTEXT (ctx, NULL);
-
- if (!(ctx->private_feature_flags & COGL_PRIVATE_FEATURE_VBOS))
+ if (!(context->private_feature_flags & COGL_PRIVATE_FEATURE_VBOS))
use_malloc = TRUE;
else
use_malloc = FALSE;
/* parent's constructor */
_cogl_buffer_initialize (COGL_BUFFER (indices),
+ context,
bytes,
use_malloc,
COGL_BUFFER_BIND_TARGET_INDEX_BUFFER,