mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
mesa: Convert some asserts into STATIC_ASSERT.
Reviewed-by: Chad Versace <chad.versace@intel.com>
This commit is contained in:
parent
7b06af9d3c
commit
b0334a9aeb
1 changed files with 6 additions and 7 deletions
|
|
@ -377,13 +377,12 @@ one_time_init( struct gl_context *ctx )
|
|||
if (!api_init_mask) {
|
||||
GLuint i;
|
||||
|
||||
/* do some implementation tests */
|
||||
assert( sizeof(GLbyte) == 1 );
|
||||
assert( sizeof(GLubyte) == 1 );
|
||||
assert( sizeof(GLshort) == 2 );
|
||||
assert( sizeof(GLushort) == 2 );
|
||||
assert( sizeof(GLint) == 4 );
|
||||
assert( sizeof(GLuint) == 4 );
|
||||
STATIC_ASSERT(sizeof(GLbyte) == 1);
|
||||
STATIC_ASSERT(sizeof(GLubyte) == 1);
|
||||
STATIC_ASSERT(sizeof(GLshort) == 2);
|
||||
STATIC_ASSERT(sizeof(GLushort) == 2);
|
||||
STATIC_ASSERT(sizeof(GLint) == 4);
|
||||
STATIC_ASSERT(sizeof(GLuint) == 4);
|
||||
|
||||
_mesa_locale_init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue