aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-10-20 00:05:18 +0000
committerKenneth Russel <[email protected]>2008-10-20 00:05:18 +0000
commit08e46762d4b86051dade863cacdce9b8b0996d1c (patch)
treec05c61c3936bed8d3a05464f9b1f760e893db1ff /src/classes/com/sun
parent133c8f5a973c31aa8e6580eb9c1e9b26279e0edb (diff)
Fixed sense of test against GL.isGL2() when deciding whether to use
GL_ARB_texture_rectangle git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1778 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/texture/Texture.java2
1 files changed, 1 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 4e8c206bc..3c93d219f 100755
--- a/src/classes/com/sun/opengl/util/texture/Texture.java
+++ b/src/classes/com/sun/opengl/util/texture/Texture.java
@@ -468,7 +468,7 @@ public class Texture {
texWidth = imgWidth;
texHeight = imgHeight;
texTarget = GL.GL_TEXTURE_2D;
- } else if (haveTexRect(gl) && !data.isDataCompressed() && !gl.isGL2()) {
+ } else if (haveTexRect(gl) && !data.isDataCompressed() && gl.isGL2()) {
// GL_ARB_texture_rectangle does not work for compressed textures
if (DEBUG) {
System.err.println("Using GL_ARB_texture_rectangle");