summaryrefslogtreecommitdiffstats
path: root/tests/condition-05.glsl
blob: 3dff18f519dbebca13a3f20d5c03ac8e195c8dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 120
/* PASS */

uniform bool a;
uniform int b;

void main()
{
  float x;

  x = (a) ? 2.0 : b;
  gl_Position = vec4(x);
}