mesa: add AllocTextureImageBuffer() driver hook
authorBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2011 20:50:48 +0000 (14:50 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2011 20:57:40 +0000 (14:57 -0600)
src/mesa/main/dd.h

index 18b1b01d60cfebb0d03c88bac1f08ce32edc7185..720e4f53d6a8798cc321efb69d27f3a0efb55486 100644 (file)
@@ -480,6 +480,12 @@ struct dd_function_table {
    void (*DeleteTextureImage)(struct gl_context *ctx,
                               struct gl_texture_image *);
 
+   /** Called to allocate memory for a single texture image */
+   GLboolean (*AllocTextureImageBuffer)(struct gl_context *ctx,
+                                        struct gl_texture_image *texImage,
+                                        gl_format format, GLsizei width,
+                                        GLsizei height, GLsizei depth);
+
    /** 
     * Called to free tImage->Data.
     */