1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
[require]
GLSL >= 1.10
[vertex shader]
float global_variable;
void main()
{
gl_Position = gl_Vertex;
}
[vertex shader]
float global_variable = 1.0;
/* This works around a bug in Apple's GLSL compiler. Their compiler won't allow
* a shader doesn't have any executable code.
*/
void apple_work_around1() {}
[vertex shader]
float global_variable = 2.0;
/* This works around a bug in Apple's GLSL compiler. Their compiler won't allow
* a shader doesn't have any executable code.
*/
void apple_work_around2() {}
[test]
link error
|