diff options
author | Sven Gothel <[email protected]> | 2011-09-02 02:16:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-02 02:16:19 +0200 |
commit | 7cc793a3c6310085f0e2f89d425b94fe7965c79f (patch) | |
tree | bc41688c8c229ee46621097659f87950841692fd /src/jogl/classes/jogamp/opengl/GLDrawableHelper.java | |
parent | f17f55189a3877928c881c7f12274e413960f600 (diff) |
GLArrayDataWrapper: Allow vboTarget '0' -> no VBO
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableHelper.java')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLDrawableHelper.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java index 9353479ab..5d91a5ee2 100644 --- a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java +++ b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java @@ -278,7 +278,7 @@ public class GLDrawableHelper { return autoSwapBufferMode; } - private static final ThreadLocal perThreadInitAction = new ThreadLocal(); + private static final ThreadLocal<Runnable> perThreadInitAction = new ThreadLocal<Runnable>(); /** Principal helper method which runs a Runnable with the context made current. This could have been made part of GLContext, but a @@ -318,7 +318,7 @@ public class GLDrawableHelper { // other drawables' display() methods from within another one's // FIXME: re-evaluate due to possible expensive TLS access ? GLContext lastContext = GLContext.getCurrent(); - Runnable lastInitAction = (Runnable) perThreadInitAction.get(); + Runnable lastInitAction = perThreadInitAction.get(); if (lastContext != null) { lastContext.release(); } |