diff options
Diffstat (limited to 'src/mesa/swrast/s_context.h')
-rw-r--r-- | src/mesa/swrast/s_context.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_context.h b/src/mesa/swrast/s_context.h index 38015483597..2525e8e2d38 100644 --- a/src/mesa/swrast/s_context.h +++ b/src/mesa/swrast/s_context.h @@ -148,8 +148,14 @@ struct swrast_texture_image * between all slices. */ GLint RowStride; - void **ImageSlices; /**< if 3D texture: array [Depth] of offsets to - each 2D slice in 'Data', in texels */ + /** + * When a texture image is mapped for swrast, this array contains pointers + * to the beginning of each slice. + * + * For swrast-allocated textures, these pointers will always stay + * initialized to point within Buffer. + */ + void **ImageSlices; GLubyte *Map; /**< Pointer to mapped image memory */ /** Malloc'd texture memory */ |