make COGL_FEATURE_VBOS a private feature
Cogl provides a consistent public interface regardless of whether the underlying GL driver supports VBOs so it doesn't make much sense to have this feature as part of the public api. We can't break the api by removing the enum but at least we no longer ever set the feature flag. We now have a replacement private feature flag COGL_PRIVATE_FEATURE_VBOS which cogl now checks for internally. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
#include "cogl-object-private.h"
|
||||
#include "cogl-indices.h"
|
||||
#include "cogl-indices-private.h"
|
||||
#include "cogl-context-private.h"
|
||||
|
||||
static void _cogl_index_buffer_free (CoglIndexBuffer *indices);
|
||||
|
||||
@ -46,7 +47,9 @@ cogl_index_buffer_new (gsize bytes)
|
||||
CoglIndexBuffer *indices = g_slice_new (CoglIndexBuffer);
|
||||
gboolean use_malloc;
|
||||
|
||||
if (!cogl_features_available (COGL_FEATURE_VBOS))
|
||||
_COGL_GET_CONTEXT (ctx, NULL);
|
||||
|
||||
if (!(ctx->private_feature_flags & COGL_PRIVATE_FEATURE_VBOS))
|
||||
use_malloc = TRUE;
|
||||
else
|
||||
use_malloc = FALSE;
|
||||
|
Reference in New Issue
Block a user