3 GL_ARB_uniform_buffer_object
6 #extension GL_ARB_uniform_buffer_object : require
20 in vec4 piglit_vertex;
25 gl_Position = piglit_vertex;
27 // The GLSL compiler has a bug that compiles this expression as:
28 // vec4(test1, test2, test1, test2)
30 // In other words, it only fetches from the first uniform block.
32 // This bug can be avoided by doing:
33 // vec4(test1, test2, test3, 0.4)
35 // In this case, the GLSL compiler correctly generates a fetch
36 // from the second uniform block.
38 fcolor = vec4(test1, test2, test3, test4);
46 gl_FragColor = fcolor;
52 uniform float test1 0.1
53 uniform float test2 0.2
54 uniform float test3 0.3
55 uniform float test4 0.4
58 probe all rgba 0.1 0.2 0.3 0.4