diff options
author | Sven Gothel <[email protected]> | 2011-02-06 07:05:35 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-02-06 07:05:35 +0100 |
commit | 01bd8687e0d12146672dec42cfd3259e74eaba89 (patch) | |
tree | f24310d71049c26e32ff3665dfbe4535569c5ac3 /src/jogl/classes/javax/media | |
parent | efecc1eb881d28d142ecc39c1635161d70f58a6c (diff) |
Fix GLContext ProcAddressTable Caching: Add sw/hw accel bit to hash value due to possible diff function ptr of sw impl (NV/Win7)
Diffstat (limited to 'src/jogl/classes/javax/media')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLContext.java | 5 |
1 files changed, 5 insertions, 0 deletions
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 { /** <code>ARB_create_context</code> 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/*<int, Object>*/ attachedObjects = new HashMap(); |