summaryrefslogtreecommitdiff
path: root/cogl/cogl-context-private.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2011-10-31 14:19:10 +0000
committerNeil Roberts <neil@linux.intel.com>2011-11-16 16:21:31 +0000
commitf4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead (patch)
treef7f489002655865643f1d215563d7596e8642586 /cogl/cogl-context-private.h
parent2ba4fe417acb0352e6eca0e1f61627975c9716e3 (diff)
downloadcogl-f4c1ba9ed9f1555f7a6dbd5bbd84f7b936019ead.tar.gz
cogl-flags: Use longs instead of ints
Previously cogl-flags was using an array of ints to store the flags. There was a comment saying that it would be nice to use longs but this is awkward because g_parse_debug_flags can only work in ints. This is a silly reason not to use longs because we can just parse multiple sets of flags per long. This patch therefore changes cogl-flags to use longs and tweaks the debug key parsing code. Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-context-private.h')
-rw-r--r--cogl/cogl-context-private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/cogl/cogl-context-private.h b/cogl/cogl-context-private.h
index 3b40b36e..df0aa4a7 100644
--- a/cogl/cogl-context-private.h
+++ b/cogl/cogl-context-private.h
@@ -63,7 +63,7 @@ struct _CoglContext
const CoglTextureDriver *texture_driver;
/* Features cache */
- unsigned int features[COGL_FLAGS_N_INTS_FOR_SIZE (_COGL_N_FEATURE_IDS)];
+ unsigned long features[COGL_FLAGS_N_LONGS_FOR_SIZE (_COGL_N_FEATURE_IDS)];
CoglFeatureFlags feature_flags; /* legacy/deprecated feature flags */
CoglPrivateFeatureFlags private_feature_flags;
@@ -254,8 +254,8 @@ struct _CoglContext
CoglXlibTrapState *trap_state;
#endif
- unsigned int winsys_features
- [COGL_FLAGS_N_INTS_FOR_SIZE (COGL_WINSYS_FEATURE_N_FEATURES)];
+ unsigned long winsys_features
+ [COGL_FLAGS_N_LONGS_FOR_SIZE (COGL_WINSYS_FEATURE_N_FEATURES)];
void *winsys;
/* This defines a list of function pointers that Cogl uses from