From 9a642c08f9ee818a89d5eab8ce16ca8e0ee7f9d9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 23 Jan 2014 18:00:04 +0100 Subject: EGLDisplayUtil.eglCreateEGLGraphicsDevice(..): Don't open() device implicit; EGLDrawableFactory.mapAvailableEGLESConfig(..): Clarify --- .../com/jogamp/nativewindow/egl/EGLGraphicsDevice.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/nativewindow') diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/egl/EGLGraphicsDevice.java b/src/nativewindow/classes/com/jogamp/nativewindow/egl/EGLGraphicsDevice.java index c83814907..6dc52a702 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/egl/EGLGraphicsDevice.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/egl/EGLGraphicsDevice.java @@ -86,6 +86,12 @@ public class EGLGraphicsDevice extends DefaultGraphicsDevice implements Cloneabl return super.clone(); } + /** + * Opens the EGL device if handle is null and it's {@link EGLDisplayLifecycleCallback} is valid. + *

+ * {@inheritDoc} + *

+ */ @Override public boolean open() { if(null != eglLifecycleCallback && 0 == handle) { @@ -101,6 +107,12 @@ public class EGLGraphicsDevice extends DefaultGraphicsDevice implements Cloneabl return false; } + /** + * Closes the EGL device if handle is not null and it's {@link EGLDisplayLifecycleCallback} is valid. + *

+ * {@inheritDoc} + *

+ */ @Override public boolean close() { if(null != eglLifecycleCallback && 0 != handle) { -- cgit v1.2.3