Skip to content
Snippets Groups Projects
Commit 453d132d authored by Michael Heyde's avatar Michael Heyde
Browse files

fixed zero buffer bugs

parent f205b507
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,9 @@ public class MaxCurvatureDifferenceAccumulator extends AbstractVolumeAccumulator
//fill textures
FloatBuffer buffer = Buffers.newDirectFloatBuffer(container.valueMesh3d);
t.update(gl, 0, buffer, container.dimension);
if(buffer.capacity() > 0){
t.update(gl, 0, buffer, container.dimension);
}
}
this.needsUpdate.remove(key);
}
......
......@@ -145,7 +145,9 @@ public class SharpnessVolumeAccumulator extends AbstractVolumeAccumulator {
//fill textures
FloatBuffer buffer = Buffers.newDirectFloatBuffer(container.valueMesh3d);
t.update(gl, 0, buffer, container.dimension);
if(buffer.capacity() > 0){
t.update(gl, 0, buffer, container.dimension);
}
}
this.needsUpdate.remove(key);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment