From e4d142fa647f470a9dd434fb89db4425c9b3f527 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 20 Mar 2009 18:40:32 +0000 Subject: Fix GLProfile.isGL2ES[12](), adding GLProfile.hasGLSL() git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1896 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/jogl/classes/com/sun/opengl/util/ImmModeSink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/com/sun/opengl/util/ImmModeSink.java') diff --git a/src/jogl/classes/com/sun/opengl/util/ImmModeSink.java b/src/jogl/classes/com/sun/opengl/util/ImmModeSink.java index 90ea9ce7c..ad4e58129 100644 --- a/src/jogl/classes/com/sun/opengl/util/ImmModeSink.java +++ b/src/jogl/classes/com/sun/opengl/util/ImmModeSink.java @@ -258,7 +258,7 @@ public class ImmModeSink { int cComps, int cDataType, int nComps, int nDataType, int tComps, int tDataType, boolean useGLSL) { - if(useGLSL && !GLProfile.isGL2ES2()) { + if(useGLSL && !GLProfile.hasGLSL()) { throw new GLException("ImmModeSink GLSL usage not supported for profile: "+GLProfile.getProfile()); } vboSet = new VBOSet(glBufferUsage, initialSize, -- cgit v1.2.3