From 68507eceead4e4cd6bb67ae219a333ab35f56bea Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 25 Mar 2010 13:41:32 -0700 Subject: [PATCH] More matrix compilation tests --- tests/matrix-09.glsl | 11 +++++++++++ tests/matrix-10.glsl | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/matrix-09.glsl create mode 100644 tests/matrix-10.glsl 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; +} -- 2.30.2