blob: 26b98daaf3e1710b4356d6ae6bcf7b97df3c3f97 [file] [log] [blame]
John Kessenichab41fe52013-10-24 01:25:40 +00001#version 330 compatibility
John Kessenichef8ae2e2013-02-27 19:02:52 +00002
3in vec4 inVar;
4out vec4 outVar;
5
6varying vec4 varyingVar;
7
8void main()
9{
John Kessenich5134b9c2013-11-20 21:12:43 +000010 gl_FragColor = varyingVar; // link ERROR: user output was used
11 gl_FragData[1] = inVar; // link ERROR: user output was used
John Kessenichc2ff7702013-04-25 16:44:03 +000012 int buffer = 4;
John Kessenichef8ae2e2013-02-27 19:02:52 +000013}
John Kessenichab41fe52013-10-24 01:25:40 +000014
15#extension GL_ARB_separate_shader_objects : enable
16
17in gl_PerFragment {
18 vec4 gl_Color;
19};
20
21void foo()
22{
23 vec4 c = gl_Color;
John Kessenich5134b9c2013-11-20 21:12:43 +000024 outVar = inVar;
John Kessenichab41fe52013-10-24 01:25:40 +000025}