   GLSL error's - How to fix
  Vertex Shader : shaders/car_shader.vertOutput from shader : Vertex shader was successfully compiled to run on hardware.Fragment Shader : shaders/car_shader.fragOutput from shader : Fragment shader failed to compile with the following errors:Compiler error: Sampler array indexes must be integral constant expressionsOutput from shader Fragment shader(s) were not successfully compiled before glLinkProgram() was called.  Link failed.// --- car_shader.frag// --- This is the main frag shader for car objects// --- We will later add texture spatting and use it for terrain// --- Preprocessor Defines#define MAX_POINT_LIGHTS 7#define NUM_SHADOW_SAMPLES 9uniform sampler2DShadow Directional_Light;uniform sampler2DShadow Point_Lights[ MAX_POINT_LIGHTS ];[Edited by - stringa on August 18, 2008 2:50:32 PM]
  Change thisuniform sampler2DShadow Point_Lights[ MAX_POINT_LIGHTS ];touniform sampler2DShadow Point_Lights[7];and download Rendermonkey to test/debug your code its fast and easy to use.