Login  Register

Re: Good news

Posted by adi on Sep 06, 2014; 8:35pm
URL: https://forum.jogamp.org/Good-news-tp4033046p4033076.html

Hi

Now i have it, the third Buffer works also now.
Problem was, the both function's glBufferData and glBufferSubData,
can't handle ByteBuffer's.
With FloatBuffer an DoubleBuffer they work correkt.
All datas are now correct present in the Shader.

That is problematic, if some other datas as only float's and double's
must be used, how a mix von java data types, that is in the moment
not possible. Only ByteBuffer can handle mixed java data types.
In java i have no structs :-)  And simple (data) classes can the
function's not handle.

The problem must lie in the functions, then only a simlple change from
ByteBuffer to FloatBuffer was taken, and all works's correct.
It seems i have found a bug in the driver?

But it works at last: