From 776d1e3158a92140f3103d6bfbfe0b6e632d2666 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 3 Apr 2007 04:03:35 +0000 Subject: Added TextureIO.setTexRectEnabled() and isTexRectEnabled() based on discussions with Chris Campbell of the Java 2D team, and changed Texture implementation to respect it git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1190 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/com/sun/opengl/util/texture/Texture.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/classes/com/sun/opengl/util/texture/Texture.java') diff --git a/src/classes/com/sun/opengl/util/texture/Texture.java b/src/classes/com/sun/opengl/util/texture/Texture.java index 167b4e073..9ceff7cd8 100755 --- a/src/classes/com/sun/opengl/util/texture/Texture.java +++ b/src/classes/com/sun/opengl/util/texture/Texture.java @@ -892,6 +892,8 @@ public class Texture { } private static boolean haveTexRect(GL gl) { - return (!disableTexRect && gl.isExtensionAvailable("GL_ARB_texture_rectangle")); + return (!disableTexRect && + TextureIO.isTexRectEnabled() && + gl.isExtensionAvailable("GL_ARB_texture_rectangle")); } } -- cgit v1.2.3