diff options
author | Kenneth Russel <[email protected]> | 2007-04-03 04:03:35 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-04-03 04:03:35 +0000 |
commit | 776d1e3158a92140f3103d6bfbfe0b6e632d2666 (patch) | |
tree | 878d6ac2dbb03d8350eeb8b090fa351d91192199 /src/classes/com/sun/opengl/util/texture/Texture.java | |
parent | 78032009d2ca6fbb14b0689f5d68961a5b477325 (diff) |
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
Diffstat (limited to 'src/classes/com/sun/opengl/util/texture/Texture.java')
-rwxr-xr-x | src/classes/com/sun/opengl/util/texture/Texture.java | 4 |
1 files changed, 3 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 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")); } } |