Re: [JOGL] VBO's not updating
Posted by
Xerxes Rånby on
Jun 02, 2015; 9:30am
URL: https://forum.jogamp.org/JOGL-VBO-s-not-updating-tp4034566p4034568.html
Den 2015-06-02 11:05, Al [via jogamp] skrev:
> private void loadVoxels(GL2 gl)
> {
...
> vboIsUpToDate=true;
> }
>
> public void display(GLAutoDrawable drawable) {
...
> if(!vboIsUpToDate)
> loadVoxels(gl);
Check that the type of
vboIsUpToDate is *not*
final.
if you change vboIsUpToDate using a different thread then set it to
volatile type.
You also need to set vboIsUpToDate = false;
after you have you have updated VoxObject
Please post complete sourcecode
a Short, Self Contained, Correct (Compilable), Example
http://sscce.org/, preferably inside a git, else there is no way to check that the application work at runtime.