OSDN Git Service

mesa: update comment for MapTextureImage()
authorBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 15:54:27 +0000 (08:54 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 16:25:41 +0000 (09:25 -0700)
src/mesa/main/dd.h

index 01cfff8..5816faa 100644 (file)
@@ -491,6 +491,8 @@ struct dd_function_table {
    void (*FreeTextureImageBuffer)( struct gl_context *ctx, struct gl_texture_image *tImage );
 
    /** Map a slice of a texture image into user space.
+    * Note: for GL_TEXTURE_1D_ARRAY, height must be 1, y must be 0 and slice
+    * indicates the 1D array index.
     * \param texImage  the texture image
     * \param slice  the 3D image slice or array texture slice
     * \param x, y, w, h  region of interest