summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-04-20 04:13:14 +0200
committerSven Gothel <[email protected]>2023-04-20 04:13:14 +0200
commit8041c69644acb5bd68bb6404ba8744163e8f2a30 (patch)
tree287536734aab9ffe317ad3aff47f3627b0a55e0b /src/jogl/classes/com/jogamp
parent736d7a18f3e25744a31f85acedbd5b417f073afe (diff)
GLArrayDataServer.addGLSLSubArray(): Return (actual) GLArrayDataWrapper instead of just GLArrayData interface, exposing and allowing mutable access to attribute location for interleaved sub-arrays
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/GLArrayDataServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataServer.java b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataServer.java
index e530ad627..433a25eb8 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataServer.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/GLArrayDataServer.java
@@ -412,7 +412,7 @@ public class GLArrayDataServer extends GLArrayDataClient implements GLArrayDataE
* @param comps This interleaved array segment's component count per element
* @param vboTarget {@link GL#GL_ARRAY_BUFFER} or {@link GL#GL_ELEMENT_ARRAY_BUFFER}
*/
- public GLArrayData addGLSLSubArray(final String name, final int comps, final int vboTarget) {
+ public GLArrayDataWrapper addGLSLSubArray(final String name, final int comps, final int vboTarget) {
if(interleavedOffset >= getCompsPerElem() * getBytesPerComp()) {
final int iOffC = interleavedOffset / getBytesPerComp();
throw new GLException("Interleaved offset > total components ("+iOffC+" > "+getCompsPerElem()+")");