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
This commit is contained in:
parent
01fc0645cb
commit
eebed6f60b
4 changed files with 21 additions and 1 deletions
12
Test/400.frag
Normal file
12
Test/400.frag
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue