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
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev