
6 Jun
2014
6 Jun
'14
8:39 p.m.
Emil Dotchevski wrote:
If a matrix type stores its values as anything but a 1-dimensional array in column-major order, you can't (portably) feed it into glUniformMatrix4fv without a temporary; at least it'd require a cast, which in theory may not work on some platform.
Actually, a two-dimensional array is guaranteed to be laid out linearly in memory. The rest of the message still stands though.