diff options
author | Ian Romanick <[email protected]> | 2010-03-25 13:41:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-25 13:41:32 -0700 |
commit | 68507eceead4e4cd6bb67ae219a333ab35f56bea (patch) | |
tree | ffa084d0c57284be41fc46f8acdd9c7f0bd5bb0c /tests | |
parent | 3d303eb59fb87de2627f9ad0c1d47ddfbb1f371c (diff) |
More matrix compilation tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/matrix-09.glsl | 11 | ||||
-rw-r--r-- | tests/matrix-10.glsl | 12 |
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; +} |