aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag
new file mode 100644
index 00000000..e72eb045
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/clipping/clip-distance-unavailable.frag
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.20
+ * glsles_version: 1.00
+ * check_link: true
+ * [end config]
+ *
+ * This test verifies that the fragment shader special variable
+ * gl_ClipDistance (defined in GLSL 1.30) is not available when the
+ * GLSL version is 1.20.
+ */
+
+varying float gl_ClipDistance[2];
+
+void main()
+{
+}