mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
main: Remove comparison unsigned int >= 0.
Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
c503ce1044
commit
0e6f0eea1a
1 changed files with 0 additions and 1 deletions
|
|
@ -41,7 +41,6 @@
|
|||
static inline struct gl_texture_unit *
|
||||
_mesa_get_tex_unit(struct gl_context *ctx, GLuint unit)
|
||||
{
|
||||
ASSERT(unit >= 0);
|
||||
ASSERT(unit < Elements(ctx->Texture.Unit));
|
||||
return &(ctx->Texture.Unit[unit]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue