to prev.
This commit is contained in:
parent
76cd4e6eca
commit
51876d6ada
@ -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…
x
Reference in New Issue
Block a user