GLSL corrupting image2d when exporting mat4 array assigned using a for loop

I’ve already written out my problem here: http://stackoverflow.com/questions/18240149/glsl-mat4-arrays-and-extremely-strange-behaviour-when-setting-using-a-for-loop

Basically if i assign mat4 to an array using a for loop with a variable conditional, or literal value over 8, the data when uploaded overwrites / corrupts adjacent texture pixels.

This is the most bizarre bug I have ever come across…

Any idea what i’m doing wrong?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.