For reference to anyone else with the same problem:
The following works on NVIDIA but not on "ATI Radeon HD 4800 Series"
Code :uniform sampler2D ShadowTexture[2]; void main() { int splitPlane = 0; float value = texture2D(ShadowTexture[splitPlane], vec2(0.0, 0.0)).x;
With amd_catalyst_12.1a_preview_win7_32-64 ,you get the following error
ERROR: error(#15) Extension: 'sm5' isn't supported=> sampler array isn't support indirect index Sampler array indexes must be integral constant expressions
With earlier drivers, the fragment is discarded without any error.



