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/GLArrayDataWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/sun/opengl/util/GLArrayDataWrapper.java') diff --git a/src/jogl/classes/com/sun/opengl/util/GLArrayDataWrapper.java b/src/jogl/classes/com/sun/opengl/util/GLArrayDataWrapper.java index a36ebc60a..04009595e 100644 --- a/src/jogl/classes/com/sun/opengl/util/GLArrayDataWrapper.java +++ b/src/jogl/classes/com/sun/opengl/util/GLArrayDataWrapper.java @@ -26,8 +26,8 @@ public class GLArrayDataWrapper implements GLArrayData { int vboName, long bufferOffset) throws GLException { - if(!GLProfile.isGL2ES2()) { - throw new GLException("GLArrayDataServer not supported for profile: "+GLProfile.getProfile()); + if(!GLProfile.hasGLSL()) { + throw new GLException("GLArrayDataWrapper.GLSL not supported for profile: "+GLProfile.getProfile()); } GLProfile.isValidArrayDataType(-1, comps, dataType, true, true); -- cgit v1.2.3