[cogl/cogl-1.16] renderer: assert CoglPrivateFeatureFlags fit in 32 bits
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.16] renderer: assert CoglPrivateFeatureFlags fit in 32 bits
- Date: Fri, 23 Aug 2013 21:21:09 +0000 (UTC)
commit 1c91bd4a05a6630e78cc84f4e34b6a632cf23753
Author: Robert Bragg <robert linux intel com>
Date: Wed Jun 12 16:23:30 2013 +0100
renderer: assert CoglPrivateFeatureFlags fit in 32 bits
This updates the static assertion in cogl-renderer.c to only check that
the flags will fit in 32 bits instead of asserting the type has the same
size as an unsigned long.
(cherry picked from commit c6893fa3c9eda0f13b79d3a1fc03f8b79c42a8f6)
cogl/cogl-renderer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cogl/cogl-renderer.c b/cogl/cogl-renderer.c
index fc207a8..ada3c3b 100644
--- a/cogl/cogl-renderer.c
+++ b/cogl/cogl-renderer.c
@@ -101,9 +101,9 @@ typedef struct _CoglDriverDescription
const char *libgl_name;
} CoglDriverDescription;
-_COGL_STATIC_ASSERT(sizeof (CoglPrivateFeatureFlags) ==
- sizeof (unsigned long),
- "Private feature flags don't fit in long");
+_COGL_STATIC_ASSERT(sizeof (CoglPrivateFeatureFlags) <=
+ sizeof (uint32_t),
+ "Private feature flags don't fit in 32 bits");
static CoglDriverDescription _cogl_drivers[] =
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]