summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-03-06 02:15:53 +0100
committerSven Gothel <[email protected]>2023-03-06 02:15:53 +0100
commita424365f723fb540b0895ea009df3506ca0619a7 (patch)
treefe56822924073cd81bb7e315c185cc4ae75465c7
parentc14b85395d2b3b75d09d9b9fd2eeecb20aad46af (diff)
GLArrayDataClient: Minor toString() and DEBUG output fixes
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java
index 71b15e4e9..e0d1ef625 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataClient.java
@@ -413,7 +413,7 @@ public class GLArrayDataClient extends GLArrayDataWrapper implements GLArrayData
", dataType 0x"+Integer.toHexString(componentType)+
", bufferClazz "+componentClazz+
", elements "+getElemCount()+
- ", components "+componentsPerElement+
+ ", compsPerElem "+componentsPerElement+
", stride "+strideB+"b "+strideL+"c"+
", mappedElementCount "+mappedElementCount+
", initialElementCount "+initialElementCount+
@@ -455,8 +455,8 @@ public class GLArrayDataClient extends GLArrayDataWrapper implements GLArrayData
final int required_elems = compsToElemCount(has_comps + spareComponents);
final int new_elems = compsToElemCount( (int)( has_comps * growthFactor + 0.5f ) );
final int elementCount = Math.max( new_elems, required_elems );
- if(DEBUG) {
- System.err.println("*** Size: Grow: "+compsToElemCount(has_comps)+" -> "+elementCount);
+ if( DEBUG ) {
+ System.err.println("*** Size: Grow: elems "+compsToElemCount(has_comps)+" -> max("+new_elems+", "+required_elems+") -> "+elementCount);
}
return reserve( elementCount );
}