On 02/28/2014 02:50 PM, elect [via jogamp] wrote:
> Hi,
> I get an error
>
> /Caused by: java.lang.IndexOutOfBoundsException: Required 16777216 remaining
> bytes in buffer, only had 314199/
>
> My png should be a 32b RGBA 2048x2048, then 4B aligned, then 2048 * 2048 * 4 =
> 16777216... so why do I get 314199?
Pls have a look at GLBuffers,
which provides tools to calculate the required memory
for the texture considering pixelformat, stride .. etc.
~Sven