From 7cc793a3c6310085f0e2f89d425b94fe7965c79f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 2 Sep 2011 02:16:19 +0200 Subject: GLArrayDataWrapper: Allow vboTarget '0' -> no VBO --- src/jogl/classes/jogamp/opengl/GLDrawableHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableHelper.java') 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 perThreadInitAction = new ThreadLocal(); /** 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(); } -- cgit v1.2.3