diff options
author | John Kessenich <cepheus@frii.com> | 2013-06-24 21:52:41 +0000 |
---|---|---|
committer | John Kessenich <cepheus@frii.com> | 2013-06-24 21:52:41 +0000 |
commit | eebed6f60bd0df088032506e40a55b80629f03d8 (patch) | |
tree | b9545688e1f2746658d20ab9543b33f777399f3e /Test/400.frag | |
parent | 01fc0645cb63022868571b77f1f7b00a551cfa99 (diff) | |
download | glslang-eebed6f60bd0df088032506e40a55b80629f03d8.tar.gz |
Disallow variable indexing into sampler array for ES and desktop before version 400.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22148 e7fa87d3-cd2b-0410-9028-fcbf551c1848
Diffstat (limited to 'Test/400.frag')
-rw-r--r-- | Test/400.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/400.frag b/Test/400.frag new file mode 100644 index 00000000..f4288ab1 --- /dev/null +++ b/Test/400.frag @@ -0,0 +1,12 @@ +#version 330 core + +in vec2 c2D; +flat in int i; + +uniform sampler2D arrayedSampler[5]; + +void main() +{ + vec4 v; + v = texture(arrayedSampler[i], c2D); +} |