projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c90777
)
glsl: Remove unsigned greater than or equal zero comparison.
author
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 09:10:44 +0000
(
01:10
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 09:10:44 +0000
(
01:10
-0800)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 809355c56c993fa568777fa168a525f5b17311a5..96acad1f73469f98d583dec22d6825e19a565e89 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-1754,7
+1754,7
@@
swizzle_to_writemask(slang_assemble_ctx *A, GLuint swizzle,
/* end */
break;
}
- assert(swz
>= 0 && swz
<= 3);
+ assert(swz <= 3);
if (swizzle != SWIZZLE_XXXX &&
swizzle != SWIZZLE_YYYY &&