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)
This commit is contained in:
Robert Bragg 2013-06-12 16:23:30 +01:00
parent 29f08ef124
commit 1c91bd4a05

View File

@ -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[] =
{