summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-3.00/compiler/undef-GL_ES.vert
blob: 524f551073885ab1f1b5cfcca910572a72c41dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 300 es

/* [config]
 * expect_result: fail
 * glsl_version: 3.00
 * [end config]
 *
 * Section 3.4 (Preprocessor) of the OpenGL ES Shading Language 3.00 spec
 * says:
 *
 *     "It is an error to undefine or to redefine a built-in (pre-defined)
 *     macro name."
 */

#undef GL_ES

void main() { gl_Position = vec4(0); }