diff options
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java index 01c8db09d..208fd053d 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java +++ b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java @@ -434,7 +434,7 @@ public class Texture { * * @throws GLException if any OpenGL-related errors occurred */ - public void updateImage(GL gl, TextureData data, int target) throws GLException { + public void updateImage(GL gl, TextureData data, int targetOverride) throws GLException { validateTexID(gl, true); imgWidth = data.getWidth(); @@ -553,10 +553,10 @@ public class Texture { texParamTarget = texTarget; setImageSize(imgWidth, imgHeight, texTarget); - if (target != 0) { + if (targetOverride != 0) { // Allow user to override auto detection and skip bind step (for // cubemap construction) - texTarget = target; + texTarget = targetOverride; if (this.target == 0) { throw new GLException("Override of target failed; no target specified yet"); } |