aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/util
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-10-10 13:16:39 +0200
committerSven Gothel <[email protected]>2013-10-10 13:16:39 +0200
commit8363df5da5794faf10478789954992cef0c0d50f (patch)
treee313bd6254abfcd6af9252d644ee33ae7a44b84c /src/jogl/classes/com/jogamp/opengl/util
parent4e83a5df7a851cc33d85f76381f058256906ad4c (diff)
Bug 852: Validate CPU sourced data API is allowed, throw exception if not. GLContext: isCPUSourcedAvail() -> isCPUDataSourcingAvail()v2.1.0
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
index dbe916877..111e2509e 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
@@ -522,9 +522,9 @@ public class ImmModeSink {
gl.glDrawArrays(mode, 0, vElems);
}
} else {
- // FIXME: Impl. VBO usage .. or unroll (see above)!
- if( !gl.getContext().isCPUSourcedAvail() ) {
- throw new GLException("CPU sourcing n/a w/ "+gl.getContext());
+ // FIXME: Impl. VBO usage .. or unroll.
+ if( !gl.getContext().isCPUDataSourcingAvail() ) {
+ throw new GLException("CPU data sourcing n/a w/ "+gl.getContext());
}
final int type;
if(indices instanceof ByteBuffer) {