mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.
(cherry picked from commit 4b3ec2acf2)
This commit is contained in:
parent
b094683e7c
commit
0a107d36c2
1 changed files with 3 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue