aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-impl-CustomJavaCode-common.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-14 07:37:26 +0100
committerSven Gothel <[email protected]>2014-01-14 07:37:26 +0100
commit7c5483d5b20aed9c87c5ce3f6bc840b6546edcd1 (patch)
treed991b71ce688d981eb14c1ef2174f2140b564467 /make/config/jogl/gl-impl-CustomJavaCode-common.java
parent6c971f91fbe6a7e3bc45563d80d42a753586d629 (diff)
Bug 942 - Share GLBufferStateTracker ; Unify GLBufferStateTracker and GLBufferSizeTracker (simplification)
Due to future mapped buffer tracking, the GLBufferStateTracker instance shall be shared across shared GLContextImpl instances similar to GLSizeStateTracker! This allows us to merge GLSizeStateTracker code into GLBufferStateTracker to simplify the implementation. +++ Clear the GLBufferStateTracker (@destruction) only if no more created shares are left! +++
Diffstat (limited to 'make/config/jogl/gl-impl-CustomJavaCode-common.java')
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-common.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-common.java b/make/config/jogl/gl-impl-CustomJavaCode-common.java
index b8da61065..3aeda1309 100644
--- a/make/config/jogl/gl-impl-CustomJavaCode-common.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-common.java
@@ -11,7 +11,7 @@
@Override
public final long glGetBufferSize(int buffer) {
- return bufferSizeTracker.getDirectStateBufferSize(buffer, this);
+ return bufferStateTracker.getDirectStateBufferSize(buffer, this);
}
@Override
@@ -135,7 +135,7 @@
if (glProcAddress == 0) {
throw new GLException("Method \""+(useRange?"glMapBufferRange":"glMapBuffer")+"\" not available");
}
- final long sz = bufferSizeTracker.getBufferSize(bufferStateTracker, target, this);
+ final long sz = bufferStateTracker.getBufferSize(target, this);
if (0 == sz) {
return null;
}
@@ -188,7 +188,7 @@
if (glProcAddress == 0) {
throw new GLException("Method \"glMapNamedBufferEXT\" not available");
}
- final long sz = bufferSizeTracker.getDirectStateBufferSize(bufferName, this);
+ final long sz = bufferStateTracker.getDirectStateBufferSize(bufferName, this);
if (0 == sz) {
return null;
}