diff options
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLDrawable.java')
-rwxr-xr-x | src/classes/com/sun/opengl/impl/egl/EGLDrawable.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java index 0227ba32f..b562d7423 100755 --- a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java @@ -41,7 +41,6 @@ import javax.media.opengl.*; public class EGLDrawable extends GLDrawableImpl { private long display; - private GLCapabilities capabilities; private GLCapabilitiesChooser chooser; private _EGLConfig config; private long surface; @@ -51,9 +50,8 @@ public class EGLDrawable extends GLDrawableImpl { NativeWindow component, GLCapabilities capabilities, GLCapabilitiesChooser chooser) throws GLException { - this.factory = factory; - this.component = component; - this.capabilities = capabilities; + super(factory, component, true); + setChosenGLCapabilities(capabilities); this.chooser = chooser; display = EGL.eglGetDisplay((component.getDisplayHandle()>0)?component.getDisplayHandle():EGL.EGL_DEFAULT_DISPLAY); @@ -141,11 +139,6 @@ public class EGLDrawable extends GLDrawableImpl { EGL.eglSwapBuffers(display, surface); } - public GLCapabilities getChosenGLCapabilities() { - // FIXME - return null; - } - public String toString() { return "EGLDrawable[ displayHandle " + component.getDisplayHandle() + ", screenHandle "+ component.getScreenHandle() + |