projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c503ce1
)
main: Remove comparison unsigned int >= 0.
author
Laura Ekstrand
<laura@jlekstrand.net>
Mon, 12 Jan 2015 17:52:05 +0000
(09:52 -0800)
committer
Laura Ekstrand
<laura@jlekstrand.net>
Mon, 12 Jan 2015 18:23:17 +0000
(10:23 -0800)
Fixes "macro compares unsigned to 0 (NO_EFFECT)" found by Coverity Scan.
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/texstate.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.h
b/src/mesa/main/texstate.h
index 2514d104b62fce2f0b62e71ee8bc44206036b25e..abc07eafb4ecdd4df19168c94266bed87e0fee4a 100644
(file)
--- 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]);
}