added volatile

fix-456
javasabr 8 years ago
parent 2136dc4484
commit 449f83f4a6
  1. 2
      jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java

@ -29,7 +29,7 @@ public class LWJGLBufferAllocator implements BufferAllocator {
/**
* The address of LWJGL byte buffer.
*/
private Long address;
private volatile Long address;
public Deallocator(final ByteBuffer referent, final ReferenceQueue<? super ByteBuffer> queue,
final Long address) {

Loading…
Cancel
Save