Re: glTexImage2D error
Posted by
elect on
Oct 17, 2014; 9:50am
URL: https://forum.jogamp.org/glTexImage2D-error-tp4033393p4033395.html
gouessej wrote
Hi
Just try GL_LUMINANCE8 instead of GL_R8 in order to verify whether the range check is the culprit. Maybe it's a bug. Please post the full stack trace.
Wait wait, I just figured it out it can be the alignment, I am sending data with (w, h) = (1, 128) and given my alignment being 4, if I do:
127 * 4 + 1 = 509
exactly the bytes it wants..
I will continue debuggin and let you know