summaryrefslogtreecommitdiff
path: root/cogl/cogl-debug.c
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-04-15 15:39:14 +0100
committerNeil Roberts <neil@linux.intel.com>2011-04-20 18:20:10 +0100
commit4a7762d6d744133ee2492900ffda6843624e2b78 (patch)
tree0d7531902c131f04319f20f0ae574f41c7db0709 /cogl/cogl-debug.c
parentf6ae9decaa9367faaf74b8da22859ed5288b840d (diff)
downloadcogl-4a7762d6d744133ee2492900ffda6843624e2b78.tar.gz
cogl-context: Store winsys features in an array of unsigned ints
Previously the mask of available winsys features was stored in a CoglBitmask. That isn't the ideal type to use for this because it is intended for a growable array of bits so it can allocate extra memory if there are more than 31 flags set. For the winsys feature flags the highest used bit is known at compile time so it makes sense to allocate a fixed array instead. This is conceptually similar to the CoglDebugFlags which are stored in an array of integers with macros to test a bit in the array. This moves the macros used for CoglDebugFlags to cogl-flags.h and makes them more generic so they can be shared with CoglContext.
Diffstat (limited to 'cogl/cogl-debug.c')
-rw-r--r--cogl/cogl-debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cogl/cogl-debug.c b/cogl/cogl-debug.c
index 73e88a79..c0f28d4c 100644
--- a/cogl/cogl-debug.c
+++ b/cogl/cogl-debug.c
@@ -103,11 +103,11 @@ _cogl_parse_debug_string_for_keys (const char *value,
int nkeys_for_int = 0;
for (key_num = 0; key_num < nkeys; key_num++)
- if (COGL_DEBUG_GET_FLAG_INDEX (keys[key_num].value) == int_num)
+ if (COGL_FLAGS_GET_INDEX (keys[key_num].value) == int_num)
{
keys_for_int[nkeys_for_int] = keys[key_num];
keys_for_int[nkeys_for_int].value =
- COGL_DEBUG_GET_FLAG_MASK (keys[key_num].value);
+ COGL_FLAGS_GET_MASK (keys[key_num].value);
nkeys_for_int++;
}