aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-10-03 18:43:48 -0700
committerSven Gothel <[email protected]>2009-10-03 18:43:48 -0700
commit907c249a5a6f80d10912440aa073ba42b94ae6de (patch)
tree07bb12ad290cfb94704735ace1268c46e562632b /src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java
parentf043a48504b79409df4e674a15c87faa3f47c03f (diff)
EGL Fix: Use the surface handle for creation, not the window handle; More fixedCaps.
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java')
-rw-r--r--src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java b/src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java
index 36117f059..45fffbc91 100644
--- a/src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java
+++ b/src/jogl/classes/com/sun/opengl/impl/egl/EGLOnscreenDrawable.java
@@ -54,14 +54,8 @@ public class EGLOnscreenDrawable extends EGLDrawable {
return new EGLOnscreenContext(this, shareWith);
}
- protected long createSurface(long eglDpy, _EGLConfig eglNativeCfg) {
- long surf = EGL.eglCreateWindowSurface(eglDpy, eglNativeCfg, component.getWindowHandle(), null);
- if (EGL.EGL_NO_SURFACE==surf) {
- throw new GLException("Creation of window surface (eglCreateWindowSurface) failed, component: "+component+", error 0x"+Integer.toHexString(EGL.eglGetError()));
- } else if(DEBUG) {
- System.err.println("setSurface result: eglSurface 0x"+Long.toHexString(surf));
- }
- return surf;
+ protected long createSurface(long eglDpy, _EGLConfig eglNativeCfg, long surfaceHandle) {
+ return EGL.eglCreateWindowSurface(eglDpy, eglNativeCfg, surfaceHandle, null);
}
protected void swapBuffersImpl() {