diff options
author | Sven Gothel <[email protected]> | 2010-06-02 16:49:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-06-02 16:49:28 +0200 |
commit | 6bbf70d2f4a06b8aa0b100d83ed9aca6dd80040e (patch) | |
tree | 16d4d879a35b7645f46bbd947bed5b52c6022940 /src/jogl/classes/com/jogamp/opengl/impl | |
parent | 42dbcf2a74eb91d4a165f815429c121c4beb0501 (diff) |
JOGL: Sanity check in GLDrawableHelper (Context creation and initAction) ; Add Platform info in test
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/impl')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/impl/GLDrawableHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableHelper.java b/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableHelper.java index 7a4e84081..fca0a7d93 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableHelper.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/GLDrawableHelper.java @@ -136,6 +136,9 @@ public class GLDrawableHelper { lastContext.release(); } + if(!context.isCreated() && null == initAction) { + throw new GLException("Context has to be created, but no initAction is given: "+context); + } int res = 0; try { res = context.makeCurrent(); |