aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLDrawable.java')
-rwxr-xr-xsrc/classes/com/sun/opengl/impl/egl/EGLDrawable.java11
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() +