diff options
author | Sven Gothel <[email protected]> | 2008-09-02 08:35:46 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-09-02 08:35:46 +0000 |
commit | 9b7dd620a29c872df82d4deb2aeda06c07d19d48 (patch) | |
tree | f7daa773f98f73f8f2b9836a03a629a311c9332a | |
parent | 6e14457eac32f838fcdfe9b4b4e26fe7a7d13936 (diff) |
ES2 support NPOT textures
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1769 232f8b59-042b-4e1e-8c03-345bb8c30851
-rwxr-xr-x | src/classes/com/sun/opengl/util/texture/Texture.java | 3 |
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) { |