Hi All
After several days of debugging
// It does NOT work, crash in glDrawElements
#define MAX_TEXTURES 8
..
for (int i = 0; i < MAX_TEXTURES; ++i) {
...
}
// All is ok
uniform int textureCount;
...
for (int i = 0; i < textureCount; ++i) {
...
}
I guess it's unroll problem (correct me if not). I use old ATI card intentionally as "minimal" because users can have any. So should I avoid unroll anywhere just because "there are some cards where it won't work"? What are better solutions for this?
Thank you