mesa: added comment for target_enum_to_index()
authorBrian Paul <brianp@vmware.com>
Thu, 19 Nov 2009 16:55:08 +0000 (09:55 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Dec 2009 19:28:25 +0000 (12:28 -0700)
src/mesa/main/texobj.c

index aaccc03..7e8a248 100644 (file)
@@ -940,7 +940,8 @@ _mesa_DeleteTextures( GLsizei n, const GLuint *textures)
 /**
  * Convert a GL texture target enum such as GL_TEXTURE_2D or GL_TEXTURE_3D
  * into the corresponding Mesa texture target index.
- * Return -1 if target is invalid.
+ * Note that proxy targets are not valid here.
+ * \return TEXTURE_x_INDEX or -1 if target is invalid
  */
 static GLint
 target_enum_to_index(GLenum target)