I have two sampler arrays in my fragment shader:
uniform sampler2D shadowMaps[12];
uniform samplerCubeShadow shadowMapsCube[12];
This works fine on my pc with opengl 4.2, however on my laptop (opengl 3.1) I'm getting the error 'array size too big'.
If I set it to 8, it works fine. Arrays of other types can be far larger however, and I can add more sampler arrays with a max size of 8 without a problem. So, how is this limit determined?
After lowering the array size to 8 the compilation works, but the linking fails silently (The log is empty and glGetError() returns 0).
If I declare each sampler individually (uniform sampler2D shadowMap1;uniform sampler2D shadowMap2; etc.), neither of these errors occur.