Login  Register

Re: Need Help Solving OpenGL/GLSL 4.4 Issues

Posted by jmaasing on Jul 27, 2014; 9:42am
URL: https://forum.jogamp.org/Need-Help-Solving-OpenGL-GLSL-4-4-Issues-tp4032557p4032661.html

I haven't done C programming in nearly 2 decades so I don't know if that struct is considered one string or several. I guess it must only be null terminated once which means that there is only 1 element in the array.
When you send java strings I guess they are null terminated so there is more than 1 element.
Since they _are_ null terminated (I guess) you do not have to pass an array of string lengths and can use 'null' for the length array.
https://www.opengl.org/sdk/docs/man/html/glShaderSource.xhtml