aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/local-function-03.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glslparsertest/glsl2/local-function-03.frag')
-rw-r--r--tests/glslparsertest/glsl2/local-function-03.frag3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/glslparsertest/glsl2/local-function-03.frag b/tests/glslparsertest/glsl2/local-function-03.frag
index 1ee171c2..5c470618 100644
--- a/tests/glslparsertest/glsl2/local-function-03.frag
+++ b/tests/glslparsertest/glsl2/local-function-03.frag
@@ -1,6 +1,7 @@
// [config]
// expect_result: pass
// glsl_version: 1.10
+// glsles_version: 1.00
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
@@ -8,7 +9,9 @@
// [end config]
/* PASS - local function declarations are not allowed in GLSL 1.10. */
+#ifndef GL_ES
#version 110
+#endif
void main() {
float foo(float x);
gl_FragColor = vec4(0.0, foo(0.5), 0.0, 1.0);