4 // require_extensions: GL_ARB_explicit_attrib_location
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:
10 // "Output binding assignments will cause LinkProgram to fail:
12 // * if the number of active outputs is greater than the value of
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."
28 #extension GL_ARB_explicit_attrib_location: require
29 layout(location = 0) out vec4 color;
30 layout(location = 0) out vec4 factor;