Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
mesa3d
/
29285882676388aacff123e8bdf025904abf8ea9
/
.
/
src
/
glsl
/
tests
/
if-02.glsl
blob: 7adccea0432a5eab5ae1d856ab3f77e01f5f13e0 [
file
] [
log
] [
blame
]
/* FAIL - if-statement condition is not bool scalar */
uniform
float
a
;
void
main
()
{
if
(
a
)
gl_Position
=
vec4
(
1.0
,
0.0
,
0.0
,
1.0
);
else
gl_Position
=
vec4
(
0.0
,
1.0
,
0.0
,
1.0
);
}