From 4edde96746fca6e2f7c35bcd54312e43a16443e6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 4 Oct 2009 16:26:29 -0700 Subject: EGL: Use surfaceHandle, not windowHandle (2) for eglSurface --- src/jogl/classes/com/sun/opengl/impl/egl/EGLDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/sun') diff --git a/src/jogl/classes/com/sun/opengl/impl/egl/EGLDrawable.java b/src/jogl/classes/com/sun/opengl/impl/egl/EGLDrawable.java index f1cbd6e35..6901be23e 100755 --- a/src/jogl/classes/com/sun/opengl/impl/egl/EGLDrawable.java +++ b/src/jogl/classes/com/sun/opengl/impl/egl/EGLDrawable.java @@ -122,9 +122,9 @@ public abstract class EGLDrawable extends GLDrawableImpl { throw new GLException("Null EGLGraphicsConfiguration from "+aConfig); } int[] tmp = new int[1]; - if (EGL.eglQuerySurface(eglDisplay, component.getWindowHandle(), EGL.EGL_CONFIG_ID, tmp, 0)) { + if (EGL.eglQuerySurface(eglDisplay, component.getSurfaceHandle(), EGL.EGL_CONFIG_ID, tmp, 0)) { // component holds static EGLSurface - eglSurface = component.getWindowHandle(); + eglSurface = component.getSurfaceHandle(); if(DEBUG) { System.err.println("setSurface re-using component's EGLSurface: handle 0x"+Long.toHexString(eglSurface)); } -- cgit v1.2.3