From 1ef16ee89df4d0dd4df0c1356e5b52eba20f3850 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 11 Aug 2008 12:16:28 +0000 Subject: Minor CVM/ES1 fixes git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1747 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/javax/media/opengl/GLProfile.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/classes/javax') diff --git a/src/classes/javax/media/opengl/GLProfile.java b/src/classes/javax/media/opengl/GLProfile.java index aec2a7789..65e103937 100644 --- a/src/classes/javax/media/opengl/GLProfile.java +++ b/src/classes/javax/media/opengl/GLProfile.java @@ -66,7 +66,10 @@ public class GLProfile { NativeLibLoader.loadGL2(); DRIHack.end(); } if(GL2ES12.equals(profile)) { + // See DRIHack.java for an explanation of why this is necessary + DRIHack.begin(); NativeLibLoader.loadGL2ES12(); + DRIHack.end(); } else if(GLES1.equals(profile) || GLES2.equals(profile)) { Object eGLDrawableFactory = GLReflection.createInstance("com.sun.opengl.impl.egl.EGLDrawableFactory"); if(null==eGLDrawableFactory) { -- cgit v1.2.3