aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/javax/media/opengl/GLProfile.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-08-08 22:51:16 +0000
committerKenneth Russel <[email protected]>2008-08-08 22:51:16 +0000
commit25e894d4355318c50d847da5deda6cd1a0d9afba (patch)
tree88ad3a02fc16c511117b90b5b358c64274e3a54f /src/classes/javax/media/opengl/GLProfile.java
parentef3d17d74239a0c13de8e0e7af09fa17c803952c (diff)
Removed unnecessary GL2 dependencies from desktop window system code.
Moved Linux-specific DRIHack into shared code so it could be called from the common code path in GLProfile which now loads the shared libraries. Temporarily ignored WGL_OML_sync_control and WGL_NV_gpu_affinity extensions to avoid dependencies on NIO classes (java.nio.LongBuffer) not in CDC/FP/JSR-239 NIO profile. Can now run JOGL with CVM on the desktop. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1743 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media/opengl/GLProfile.java')
-rw-r--r--src/classes/javax/media/opengl/GLProfile.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/classes/javax/media/opengl/GLProfile.java b/src/classes/javax/media/opengl/GLProfile.java
index 67e427f5a..aec2a7789 100644
--- a/src/classes/javax/media/opengl/GLProfile.java
+++ b/src/classes/javax/media/opengl/GLProfile.java
@@ -61,7 +61,10 @@ public class GLProfile {
try {
Class clazz = Class.forName(getGLImplBaseClassName()+"Impl");
if(GL2.equals(profile)) {
+ // See DRIHack.java for an explanation of why this is necessary
+ DRIHack.begin();
NativeLibLoader.loadGL2();
+ DRIHack.end();
} if(GL2ES12.equals(profile)) {
NativeLibLoader.loadGL2ES12();
} else if(GLES1.equals(profile) || GLES2.equals(profile)) {
@@ -70,7 +73,11 @@ public class GLProfile {
throw new GLException("com.sun.opengl.impl.egl.EGLDrawableFactory not available");
}
}
+ System.out.println("Successfully loaded profile " + profile);
} catch (Throwable e) {
+ if (Debug.debug("GLProfile")) {
+ e.printStackTrace();
+ }
profile=null;
}
}