diff options
author | Sven Gothel <[email protected]> | 2009-03-20 18:40:32 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-03-20 18:40:32 +0000 |
commit | e4d142fa647f470a9dd434fb89db4425c9b3f527 (patch) | |
tree | 97e58e551c50f145bed0bf5eb1948475579652df /src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java | |
parent | 3e71baf09a671f975654a20cdaae2e39263db620 (diff) |
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
Diffstat (limited to 'src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java')
-rw-r--r-- | src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java b/src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java index caf6efe12..5c3fc39f0 100644 --- a/src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java +++ b/src/jogl/classes/com/sun/opengl/util/GLArrayDataServer.java @@ -78,8 +78,8 @@ public class GLArrayDataServer extends GLArrayDataClient implements GLArrayDataE int initialSize, int vboBufferUsage) throws GLException { - if(!GLProfile.isGL2ES2()) { - throw new GLException("GLArrayDataServer not supported for profile: "+GLProfile.getProfile()); + if(!GLProfile.hasGLSL()) { + throw new GLException("GLArrayDataServer.GLSL not supported for profile: "+GLProfile.getProfile()); } GLProfile.isValidArrayDataType(-1, comps, dataType, true, true); @@ -100,8 +100,8 @@ public class GLArrayDataServer extends GLArrayDataClient implements GLArrayDataE int stride, Buffer buffer, int vboBufferUsage) throws GLException { - if(!GLProfile.isGL2ES2()) { - throw new GLException("GLArrayDataServer not supported for profile: "+GLProfile.getProfile()); + if(!GLProfile.hasGLSL()) { + throw new GLException("GLArrayDataServer.GLSL not supported for profile: "+GLProfile.getProfile()); } GLProfile.isValidArrayDataType(-1, comps, dataType, true, true); |