summaryrefslogtreecommitdiff
path: root/tests/spec/arb_fragment_shader_interlock/compiler/endInvocationInterlock-twice.frag
blob: 4ac44f38c99e7da6f685cdfa9f0a49b7cec2948d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// [config]
// expect_result: fail
// glsl_version: 4.20
// require_extensions: GL_ARB_fragment_shader_interlock
// check_link: true
// [end config]

/* The GL_ARB_fragment_shader_interlock spec says:
 *
 *    A compile- or link-time error will be generated if main() calls either
 *    function more than once, contains a call to one function without a
 *    matching call to the other, or calls endInvocationInterlockARB() before
 *    calling beginInvocationInterlockARB().
 */
#version 420
#extension GL_ARB_fragment_shader_interlock: require

void main()
{
	beginInvocationInterlockARB();
	endInvocationInterlockARB();
	endInvocationInterlockARB();
}