aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-point-coord.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-point-coord.frag')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-point-coord.frag18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-point-coord.frag b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-point-coord.frag
new file mode 100644
index 00000000..b909f94b
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-point-coord.frag
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.20
+// glsles_version: 1.00
+// [end config]
+//
+// From section 4.3.6 of the GLSL 1.20 spec:
+// A fragment shader can not write to a varying variable.
+//
+// From section 7.6 of the GLSL 1.20 spec:
+// The following varying variables are available to read from in a fragment shader.
+// ...
+// varying vec2 gl_PointCoord;
+
+
+void g() {
+ gl_PointCoord = vec2(0.0);
+}