fix-456
javasabr 8 years ago
parent 76cd4e6eca
commit 51876d6ada
  1. 4
      jme3-lwjgl3/src/main/java/com/jme3/util/LWJGLBufferAllocator.java

@ -38,7 +38,7 @@ public class LWJGLBufferAllocator implements BufferAllocator {
} }
@Override @Override
public synchronized void destroyDirectBuffer(final Buffer buffer) { public void destroyDirectBuffer(final Buffer buffer) {
final long stamp = stampedLock.writeLock(); final long stamp = stampedLock.writeLock();
try { try {
super.destroyDirectBuffer(buffer); super.destroyDirectBuffer(buffer);
@ -48,7 +48,7 @@ public class LWJGLBufferAllocator implements BufferAllocator {
} }
@Override @Override
public synchronized ByteBuffer allocate(final int size) { public ByteBuffer allocate(final int size) {
final long stamp = stampedLock.writeLock(); final long stamp = stampedLock.writeLock();
try { try {
return super.allocate(size); return super.allocate(size);

Loading…
Cancel
Save