diff options
author | Matt Turner <mattst88@gmail.com> | 2013-06-29 15:05:37 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-07-08 11:23:46 -0700 |
commit | 81a1ab288e8c082e920e7e0ab66689ef5cfb5c7a (patch) | |
tree | 66d494773bebf1b2bf044671157afb09207acdbc /tests/spec | |
parent | cebdfb522f4136616eaa4f5cd064fbba2d8f23b5 (diff) |
arb_shading_language_420pack: Test that there is no nesting flattening
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'tests/spec')
-rw-r--r-- | tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-no-nesting-flattening.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-no-nesting-flattening.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-no-nesting-flattening.frag new file mode 100644 index 000000000..87c9d1a82 --- /dev/null +++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-no-nesting-flattening.frag @@ -0,0 +1,15 @@ +/* [config] + * expect_result: fail + * glsl_version: 1.30 + * require_extensions: GL_ARB_shading_language_420pack + * [end config] + */ + +#version 130 +#extension GL_ARB_shading_language_420pack: enable + +void main() { + // Illegal since there is no nesting flattening + mat2x2 d = { 1.0, 0.0, 0.0, 1.0 }; + gl_FragColor = vec4(1.0); +} |