projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d31990
)
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.
author
Vinson Lee
<vlee@vmware.com>
Wed, 18 Nov 2009 22:02:20 +0000
(14:02 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Wed, 18 Nov 2009 22:02:20 +0000
(14:02 -0800)
progs/glsl/trirast.c
patch
|
blob
|
history
diff --git
a/progs/glsl/trirast.c
b/progs/glsl/trirast.c
index 53bd91ef976f916c0f0d456bc95e7bacc62e04d5..857342636dc8ca41ab972f58b8b319ffacd1a543 100644
(file)
--- a/
progs/glsl/trirast.c
+++ b/
progs/glsl/trirast.c
@@
-179,9
+179,9
@@
Init(void)
"\n"
"void main() {\n"
" vec2 p = gl_FragCoord.xy; \n"
- " if (crs(v1 - v0, p - v0) >= 0 && \n"
- " crs(v2 - v1, p - v1) >= 0 && \n"
- " crs(v0 - v2, p - v2) >= 0) \n"
+ " if (crs(v1 - v0, p - v0) >= 0
.0
&& \n"
+ " crs(v2 - v1, p - v1) >= 0
.0
&& \n"
+ " crs(v0 - v2, p - v2) >= 0
.0
) \n"
" gl_FragColor = vec4(1.0); \n"
" else \n"
" gl_FragColor = vec4(0.5); \n"