From adea26fedc2fcd99685a73ac3301ccaeadc2fd99 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 30 Oct 2012 16:54:55 +0100 Subject: EGL/EGLExt Robustness: Use NIODirectOnly for all bindings. For these internal APIs, critical array is not required, hence redundant. --- .../classes/jogamp/opengl/egl/EGLDisplayUtil.java | 24 ---------------------- 1 file changed, 24 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java') diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java b/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java index 0a603ab8a..1f6f49f88 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java @@ -96,30 +96,6 @@ public class EGLDisplayUtil { return eglDisplay; } - /** - * @param eglDisplay - * @param major - * @param minor - * @return true if the eglDisplay is valid and it's reference counter becomes one and {@link EGL#eglInitialize(long, int[], int, int[], int)} was successful, otherwise false - * - * @see EGL#eglInitialize(long, int[], int, int[], int)} - */ - public static synchronized boolean eglInitialize(long eglDisplay, int[] major, int major_offset, int[] minor, int minor_offset) { - final boolean res; - final int refCnt = eglDisplayCounter.get(eglDisplay) + 1; // 0 + 1 = 1 -> 1st init - if(1==refCnt) { - res = EGL.eglInitialize(eglDisplay, major, major_offset, minor, minor_offset); - } else { - res = true; - } - eglDisplayCounter.put(eglDisplay, refCnt); - if(DEBUG) { - System.err.println("EGLDisplayUtil.eglInitialize1("+EGLContext.toHexString(eglDisplay)+" ...): #"+refCnt+" = "+res); - // Thread.dumpStack(); - } - return res; - } - /** * @param eglDisplay * @param major -- cgit v1.2.3