4 * require_extensions: GL_ARB_shading_language_420pack
9 #extension GL_ARB_shading_language_420pack: enable
11 /* The ARB_shading_language_420pack spec allows const-qualified variables to be
12 * initialized with non-constant expressions in local scope, but it says:
14 * "Initializers for *const* declarations at global scope must be
15 * constant expressions..."
17 * Verify that non-constant expressions may not be initializers of const-
18 * qualified global variables.
21 uniform float a_uniform;
22 const float a_var = a_uniform + 1.0;
25 gl_FragColor = vec4(a_var);