glUniformMatrix4dv doesn't work?
Posted by clevengr on
URL: https://forum.jogamp.org/glUniformMatrix4dv-doesn-t-work-tp4026160.html
Hi all,
I used glUniformMatrix4dv() to set the values in a uniform mat4 in my vertex shader. It kept generating "GL_INVALID_OPERATION". I finally thought to try converting the double[] containing the 16 matrix values (which did contain the values I wanted) to a float[], and calling glUniformMatrix4fv() instead. It immediately started working correctly.
Is this a bug in JOGL, a bug in my driver (I did try it on two machines with substantially different cards, though both were nVidia), or something I'm overlooking in the spec somewhere?
Thanks.