From 01bd8687e0d12146672dec42cfd3259e74eaba89 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 6 Feb 2011 07:05:35 +0100 Subject: Fix GLContext ProcAddressTable Caching: Add sw/hw accel bit to hash value due to possible diff function ptr of sw impl (NV/Win7) --- src/jogl/classes/javax/media/opengl/GLContext.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/javax/media/opengl') diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index 4c9b737d5..a0c0dd83f 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -82,6 +82,11 @@ public abstract class GLContext { /** ARB_create_context related: flag debug */ protected static final int CTX_OPTION_DEBUG = 1 << 6; + /** GLContext {@link com.jogamp.gluegen.runtime.ProcAddressTable} caching related: GL software implementation */ + protected static final int CTX_IMPL_ACCEL_SOFT = 1 << 0; + /** GLContext {@link com.jogamp.gluegen.runtime.ProcAddressTable} caching related: GL hardware implementation */ + protected static final int CTX_IMPL_ACCEL_HARD = 1 << 1; + private static ThreadLocal currentContext = new ThreadLocal(); private HashMap/**/ attachedObjects = new HashMap(); -- cgit v1.2.3