From 9b7dd620a29c872df82d4deb2aeda06c07d19d48 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 2 Sep 2008 08:35:46 +0000 Subject: 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 --- src/classes/com/sun/opengl/util/texture/Texture.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/classes/com/sun/opengl') 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) { -- cgit v1.2.3