summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-08 23:47:31 +0100
committerSven Gothel <[email protected]>2011-11-08 23:47:31 +0100
commit297c97d28bb3490177b5ff9441f3d6494d09b819 (patch)
treec171044cdd52d0a3c2232d6c3de3bffdf1aea161 /src/jogl/classes/com
parent48c2ba5ee339487ef56ba58d861cb923e3d0c432 (diff)
JOGL: GLBase Add 'isNPOTTextureAvailable()' for convenience
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
index b6df365ba..7f3aa8a39 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java
@@ -1055,9 +1055,7 @@ public class Texture {
// Helper routines for disabling certain codepaths
private static boolean haveNPOT(GL gl) {
- return (!disableNPOT &&
- ( gl.isGLES2() ||
- gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two") ) );
+ return !disableNPOT && gl.isNPOTTextureAvailable();
}
private static boolean haveTexRect(GL gl) {