[Mesa-dev] [PATCH] main: Fix Coverity defect.
Laura Ekstrand
laura at jlekstrand.net
Mon Jan 12 09:59:36 PST 2015
Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan.
---
src/mesa/main/texstate.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mesa/main/texstate.h b/src/mesa/main/texstate.h
index 2514d10..abc07ea 100644
--- a/src/mesa/main/texstate.h
+++ b/src/mesa/main/texstate.h
@@ -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]);
}
--
2.1.0
More information about the mesa-dev
mailing list