aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/impl/egl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-28 03:27:52 +0200
committerSven Gothel <[email protected]>2010-04-28 03:27:52 +0200
commita08c3c054a6b9cfe892d2516c66362083dc72290 (patch)
treec690a46026be97eb5e4b7f46c73ad3d34ef7cc97 /src/jogl/classes/com/jogamp/opengl/impl/egl
parentbb251c6e1089da4a247350371fff425abf093e1e (diff)
JOGL
- Passed tests MacOSX, LinuxX64 ATI/NVidia/MesaSW, Win32(VBox - !offscreen) - timeout -> 30s - Surface validation after lock on GLContextImpl .. NEWT - declare <NSWindowDelegate> only for MacOSX >= 10.6
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/impl/egl')
-rwxr-xr-xsrc/jogl/classes/com/jogamp/opengl/impl/egl/EGLContext.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLContext.java b/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLContext.java
index 12d713036..144c4692e 100755
--- a/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLContext.java
+++ b/src/jogl/classes/com/jogamp/opengl/impl/egl/EGLContext.java
@@ -91,7 +91,10 @@ public abstract class EGLContext extends GLContextImpl {
protected int makeCurrentImpl() throws GLException {
if(EGL.EGL_NO_DISPLAY==((EGLDrawable)drawable).getDisplay() ) {
- throw new GLException("drawable not properly initialized: "+drawable);
+ throw new GLException("drawable not properly initialized, NO DISPLAY: "+drawable);
+ }
+ if (0 == drawable.getNativeWindow().getSurfaceHandle()) {
+ throw new GLException("drawable has invalid surface handle: "+drawable);
}
boolean created = false;
if (eglContext == 0) {