aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/util/texture/Texture.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/com/sun/opengl/util/texture/Texture.java')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/texture/Texture.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/util/texture/Texture.java b/src/classes/com/sun/opengl/util/texture/Texture.java
index 957f91490..aed480fe0 100755
--- a/src/classes/com/sun/opengl/util/texture/Texture.java
+++ b/src/classes/com/sun/opengl/util/texture/Texture.java
@@ -1021,7 +1021,8 @@ public class Texture {
// Helper routines for disabling certain codepaths
private static boolean haveNPOT(GL gl) {
return (!disableNPOT &&
- gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two"));
+ ( gl.isGLES2() ||
+ gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two") ) );
}
private static boolean haveTexRect(GL gl) {