fix the spelling in whole piglit
[piglit.git] / tests / spec / arb_explicit_attrib_location / 1.20 / compiler / layout-10.frag
blob6231e303b29e7de6036023eb8d3e9ba97f864dec
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.20
4 // require_extensions: GL_ARB_explicit_attrib_location
5 // [end config]
6 //
7 // Even though the specified locations overlap, the spec says that a *link*
8 // error is generated.  The changes to section 3.9.2 say:
9 //
10 //     "Output binding assignments will cause LinkProgram to fail:
12 //           * if the number of active outputs is greater than the value of
13 //             MAX_DRAW_BUFFERS;
15 //           * if the program has an active output assigned to a location
16 //             greater than or equal to the value of
17 //             MAX_DUAL_SOURCE_DRAW_BUFFERS and has an active output assigned
18 //             an index greater than or equal to one;
20 //           * if more than one varying out variable is bound to the same
21 //             number and index; or
23 //           * if the explicit binding assignments do not leave enough space
24 //             for the linker to automatically assign a location for a varying
25 //             out array, which requires multiple contiguous locations."
27 #version 120
28 #extension GL_ARB_explicit_attrib_location: require
29 layout(location = 0) out vec4 color;
30 layout(location = 0) out vec4 factor;
32 void main()
34         color = vec4(1.0);
35         factor = vec4(0.5);