Re: Strange phenomenon about glDrawPixels, Any one can help me ?
Posted by
gouessej on
Aug 07, 2015; 12:54pm
URL: https://forum.jogamp.org/Strange-phenomenon-about-glDrawPixels-Any-one-can-help-me-tp4035033p4035049.html
It's probably a rounding error, isn't it?
((h-1) * (w + (alignment -
(w % alignment
)))
) + w
Moreover, it's up to you to pass the right size for the newly created buffer.
((888 - 1) * (587 + (4 - 587 % 4))) + 587 = 522143
It seems to work for me.
Are you sure that you pass the right "type" and the right "depth" to GLBuffers.sizeof()?