aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-05-30 14:37:54 +0000
committerSven Gothel <[email protected]>2008-05-30 14:37:54 +0000
commit31d1dd9cd0b0d1b5a0dd7ac61dfe88ee214364a8 (patch)
treef1b09269a38e952f552a57ef3dca14939297fe86 /src/classes/com/sun/opengl/impl/egl/EGLDrawable.java
parentacdd8ef2e4af64871c62b8b9b84af83a32fd1aba (diff)
EGLDrawableFactory: Removed shutdown.
GLDrawable: Added 'destroy' to interface. EGLDrawable: Implemented 'destroy', to setRealized(false) and to shutdown the egl/display connection (eglTerminate). git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1653 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLDrawable.java')
-rwxr-xr-xsrc/classes/com/sun/opengl/impl/egl/EGLDrawable.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java
index 22b39e291..8ac790157 100755
--- a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java
+++ b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java
@@ -88,7 +88,8 @@ public class EGLDrawable implements GLDrawable {
return display;
}
- public void shutdown() {
+ public void destroy() {
+ setRealized(false);
EGL.eglTerminate(display);
}
@@ -111,7 +112,7 @@ public class EGLDrawable implements GLDrawable {
if (surface == EGL.EGL_NO_SURFACE) {
throw new GLException("Creation of window surface (eglCreateWindowSurface) failed");
}
- } else {
+ } else if( surface != EGL.EGL_NO_SURFACE ) {
// Destroy the window surface
// FIXME: we should expose a destroy() method on
// GLDrawable and get rid of setRealized(), instead