From 08e46762d4b86051dade863cacdce9b8b0996d1c Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 20 Oct 2008 00:05:18 +0000 Subject: 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 --- src/classes/com/sun/opengl/util/texture/Texture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/classes/com/sun') 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"); -- cgit v1.2.3