summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-03-25 13:41:32 -0700
committerIan Romanick <[email protected]>2010-03-25 13:41:32 -0700
commit68507eceead4e4cd6bb67ae219a333ab35f56bea (patch)
treeffa084d0c57284be41fc46f8acdd9c7f0bd5bb0c /tests
parent3d303eb59fb87de2627f9ad0c1d47ddfbb1f371c (diff)
More matrix compilation tests
Diffstat (limited to 'tests')
-rw-r--r--tests/matrix-09.glsl11
-rw-r--r--tests/matrix-10.glsl12
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/matrix-09.glsl b/tests/matrix-09.glsl
new file mode 100644
index 00000000000..18afbcacea7
--- /dev/null
+++ b/tests/matrix-09.glsl
@@ -0,0 +1,11 @@
+/* FAIL - matrix-to-matrix constructors are not available in GLSL 1.10 */
+
+uniform mat3 a;
+
+void main()
+{
+ mat2 m;
+
+ m = mat2(a);
+ gl_Position = gl_Vertex;
+}
diff --git a/tests/matrix-10.glsl b/tests/matrix-10.glsl
new file mode 100644
index 00000000000..20b55180cbb
--- /dev/null
+++ b/tests/matrix-10.glsl
@@ -0,0 +1,12 @@
+#version 120
+/* PASS */
+
+uniform mat3 a;
+
+void main()
+{
+ mat2 m;
+
+ m = mat2(a);
+ gl_Position = gl_Vertex;
+}