diff --git a/jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java b/jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java index 5f1985734..b9080a57d 100644 --- a/jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java +++ b/jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java @@ -38,7 +38,7 @@ public class LWJGLBufferAllocator implements BufferAllocator { } @Override - public synchronized void destroyDirectBuffer(final Buffer buffer) { + public void destroyDirectBuffer(final Buffer buffer) { final long stamp = stampedLock.writeLock(); try { super.destroyDirectBuffer(buffer); @@ -48,7 +48,7 @@ public class LWJGLBufferAllocator implements BufferAllocator { } @Override - public synchronized ByteBuffer allocate(final int size) { + public ByteBuffer allocate(final int size) { final long stamp = stampedLock.writeLock(); try { return super.allocate(size);