Browse Source

added volatile

javasabr 8 years ago
parent
commit
449f83f4a6

+ 1 - 1
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.
          * The address of LWJGL byte buffer.
          */
          */
-        private Long address;
+        private volatile Long address;
 
 
         public Deallocator(final ByteBuffer referent, final ReferenceQueue<? super ByteBuffer> queue,
         public Deallocator(final ByteBuffer referent, final ReferenceQueue<? super ByteBuffer> queue,
                            final Long address) {
                            final Long address) {