aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-04-09 08:33:00 +0200
committerSven Gothel <[email protected]>2014-04-09 08:33:00 +0200
commit7ff2fcb36540aaed087e3a2ba2f0f84916bce2e2 (patch)
tree2e7cbc8c112ba47c476212eb728a4fa6ec040e2f /src/test/com/jogamp
parentbe8d0765317cdcb44bbe3016cc18273ecace9324 (diff)
Add TextureSequence.isTextureAvailable(), allowing triggering action only when source becomes ready
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java
index b015aebba..7034f2c67 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/TextureSequenceDemo01.java
@@ -77,6 +77,9 @@ public class TextureSequenceDemo01 implements TextureSequence {
}
@Override
+ public boolean isTextureAvailable() { return true; }
+
+ @Override
public TextureSequence.TextureFrame getLastTexture() throws IllegalStateException {
return frame; // may return null
}