Login  Register

Re: IndexOutOfBoundsException in glTexImage3D and glTexImage2D

Posted by mike on Jan 11, 2012; 5:10pm
URL: https://forum.jogamp.org/IndexOutOfBoundsException-in-glTexImage3D-and-glTexImage2D-tp3650300p3651206.html

hi,

i verified this...
the texture dimensions must be a multiple of 4 or equal 1.

boolean dimOK = dim == 1 || (dim % 4) == 0;

thanks for your help!