diff options
author | Matt Turner <mattst88@gmail.com> | 2013-06-29 15:04:49 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-07-08 11:23:46 -0700 |
commit | 03ad31bc217ca8587f7d9c2a5123cd02a16b647e (patch) | |
tree | 2a367f445bade462e871d7bf86afa8e4d8f45bc5 /tests/spec | |
parent | 40a5d6cb5f3e4150aa35dcedd01dbab9521635db (diff) |
arb_shading_language_420pack: Test wrong column type in matrix initializer
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-nonsquare-matrix-wrong-column-type.frag | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-wrong-column-type.frag b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-wrong-column-type.frag new file mode 100644 index 000000000..287d96f6d --- /dev/null +++ b/tests/spec/arb_shading_language_420pack/compiler/illegal-aggregate-initializer-nonsquare-matrix-wrong-column-type.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 columns of a mat4x2 are vec2 but vec4 are given as initializers + mat4x2 c = { vec4(0.0), vec4(1.0), vec4(0.0), vec4(1.0) }; + gl_FragColor = vec4(1.0); +} |