aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.h
diff options
context:
space:
mode:
authorLaura Ekstrand <[email protected]>2015-01-12 09:52:05 -0800
committerLaura Ekstrand <[email protected]>2015-01-12 10:23:17 -0800
commit0e6f0eea1aae95213b359662495142fc7b88c34f (patch)
tree0391941a2d638591a4993ec4a95aaee61d1a3b9b /src/mesa/main/texstate.h
parentc503ce104419a7ba39db6a0989a15d888f4b0d36 (diff)
main: Remove comparison unsigned int >= 0.
Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/main/texstate.h')
-rw-r--r--src/mesa/main/texstate.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.h b/src/mesa/main/texstate.h
index 2514d104b62..abc07eafb4e 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]);
}