Browse Source

added volatile

javasabr 8 năm trước cách đây
mục cha
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.
          */
-        private Long address;
+        private volatile Long address;
 
         public Deallocator(final ByteBuffer referent, final ReferenceQueue<? super ByteBuffer> queue,
                            final Long address) {