From 52b499095dbe18d6a8f4383093e840480d50e930 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 28 Sep 2012 18:52:57 +0200 Subject: Texture: Clarifiy API doc of getTextureObject(GL) --- src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 15dd19ea9..6e66e3d03 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java +++ b/src/jogl/classes/com/jogamp/opengl/util/texture/Texture.java @@ -833,9 +833,14 @@ public class Texture { } /** - * Returns the underlying OpenGL texture object for this texture. + * Returns the underlying OpenGL texture object for this texture + * and generates it if not done yet. + *

* Most applications will not need to access this, since it is * handled automatically by the bind(GL) and destroy(GL) APIs. + *

+ * @param gl required to be valid and current in case the texture object has not been generated yet, + * otherwise it may be null. */ public int getTextureObject(GL gl) { validateTexID(gl, false); -- cgit v1.2.3