mesa: use STATIC_ASSERT in a few more places
This commit is contained in:
@@ -113,7 +113,7 @@ _mesa_alloc_shared_state(struct gl_context *ctx)
|
||||
GL_TEXTURE_2D,
|
||||
GL_TEXTURE_1D
|
||||
};
|
||||
assert(Elements(targets) == NUM_TEXTURE_TARGETS);
|
||||
STATIC_ASSERT(Elements(targets) == NUM_TEXTURE_TARGETS);
|
||||
shared->DefaultTex[i] = ctx->Driver.NewTextureObject(ctx, 0, targets[i]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user