aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-28 17:11:32 +0200
committerSven Gothel <[email protected]>2011-09-28 17:11:32 +0200
commit09fd89250066642d05d84699beaacb0c73bcc408 (patch)
tree463b7d5f29e33ab99feb187103b4018992badfae /src
parent659476e002a9bfe6b35b00ea1c46fc67c62ba703 (diff)
Fix GLProfile ES2: Component numbers can't be validated (??)
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLProfile.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java
index 1c9e9da1e..7367d58d4 100644
--- a/src/jogl/classes/javax/media/opengl/GLProfile.java
+++ b/src/jogl/classes/javax/media/opengl/GLProfile.java
@@ -45,8 +45,6 @@ import jogamp.opengl.DesktopGLDynamicLookupHelper;
import com.jogamp.common.GlueGenVersion;
import com.jogamp.common.jvm.JNILibLoaderBase;
import com.jogamp.common.os.Platform;
-import com.jogamp.common.util.IOUtil;
-import com.jogamp.common.util.JarUtil;
import com.jogamp.common.util.ReflectionUtil;
import com.jogamp.common.util.VersionUtil;
import com.jogamp.common.util.cache.TempJarCache;
@@ -57,7 +55,6 @@ import javax.media.nativewindow.AbstractGraphicsDevice;
import javax.media.nativewindow.NativeWindowFactory;
import javax.media.opengl.fixedfunc.GLPointerFunc;
-import java.io.IOException;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.HashMap;
@@ -990,6 +987,7 @@ public class GLProfile {
}
return false;
}
+ /** unable to validate .. could be any valid type/component combination
switch(comps) {
case 0:
case 1:
@@ -999,10 +997,10 @@ public class GLProfile {
break;
default:
if(throwException) {
- throw new GLException("Illegal component number for "+arrayName+" on profile GLES1: "+comps);
+ throw new GLException("Illegal component number for "+arrayName+" on profile GLES2: "+comps);
}
return false;
- }
+ } */
} else if( isGL2ES2() ) {
if(isVertexAttribPointer) {
switch(type) {