I had two textures (diffuse map/normal map) with GLSL per-pixel lighting which works fine for a year now. I decided to add additional lightmap texture as a 3rd texture unit which seems to work fine but when i change anything in the shader runtime in GLIntercept and recompile (F7) it breaks on glDrawElements with GL_INVALID_VALUE (index count is 108). Before that, NO error occurs and i can’t figure out what the problem is. Can’t be multitexturing since 2 textures work fine. Can’t be multiple UV sets since i pack two sets into single one (xy, zw). If i remove the third texture2D sampler in the shader everything is back to normal. Any idea what that could be?
<GeForce 8600 GT (latest Omega)>