• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1group declarations "Declarations"
2
3	case redeclare_gl_FragColor
4		version 130
5		expect compile_fail
6		vertex ""
7			#version 130
8			${VERTEX_DECLARATIONS}
9			void main()
10			{
11				${VERTEX_OUTPUT}
12			}
13		""
14		fragment ""
15			#version 130
16			out vec4 gl_FragColor;
17			void main()
18			{
19				gl_FragColor = vec4(1.0);
20			}
21		""
22	end
23
24	case redeclare_gl_FragData
25		version 130
26		expect compile_fail
27		vertex ""
28			#version 130
29			${VERTEX_DECLARATIONS}
30			void main()
31			{
32				${VERTEX_OUTPUT}
33			}
34		""
35		fragment ""
36			#version 130
37			out vec4 gl_FragData[];
38			void main()
39			{
40				gl_FragData[0] = vec4(1.0, 1.0, 1.0, 1.0);
41			}
42		""
43	end
44
45end # invalid_declarations
46