From 51876d6adaab09174cffcd08c5dc1abe676dcbef Mon Sep 17 00:00:00 2001 From: javasabr Date: Sun, 16 Jul 2017 11:42:26 +0300 Subject: [PATCH] to prev. --- .../src/main/java/com/jme3/util/LWJGLBufferAllocator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);