mesa: remove ctx->Driver.CompressedTextureSize() hook
authorBrian Paul <brianp@vmware.com>
Sat, 24 Oct 2009 22:34:18 +0000 (16:34 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Oct 2009 22:34:25 +0000 (16:34 -0600)
It always just called _mesa_compressed_texture_size() anyway.

src/mesa/drivers/common/driverfuncs.c
src/mesa/main/dd.h
src/mesa/state_tracker/st_cb_texture.c

index f09106b77c3286c65bdf3f5d3e1d75ee12e610b0..fe659a622466bd69f86108b9ab257d91315a10cd 100644 (file)
@@ -115,7 +115,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    driver->CompressedTexSubImage2D = _mesa_store_compressed_texsubimage2d;
    driver->CompressedTexSubImage3D = _mesa_store_compressed_texsubimage3d;
    driver->GetCompressedTexImage = _mesa_get_compressed_teximage;
-   driver->CompressedTextureSize = _mesa_compressed_texture_size;
    driver->BindTexture = NULL;
    driver->NewTextureObject = _mesa_new_texture_object;
    driver->DeleteTexture = _mesa_delete_texture_object;
index 64bf9cba19d1dd8b1da225b059f1ebd454d22600..5f7c9cb6a3481244b0c60c744473b7a6b1997cf1 100644 (file)
@@ -475,13 +475,6 @@ struct dd_function_table {
                                  struct gl_texture_object *texObj,
                                  struct gl_texture_image *texImage);
 
-   /**
-    * Called to query number of bytes of storage needed to store the
-    * specified compressed texture.
-    */
-   GLuint (*CompressedTextureSize)( GLcontext *ctx, GLsizei width,
-                                    GLsizei height, GLsizei depth,
-                                    GLuint mesaFormat );
    /*@}*/
 
    /**
index f68620aec40554f0ff8be1987cedbe0b423daf19..8ba7c8e53fb2e63574d2952cebf194691177b7be 100644 (file)
@@ -1973,7 +1973,6 @@ st_init_texture_functions(struct dd_function_table *functions)
    /* compressed texture functions */
    functions->CompressedTexImage2D = st_CompressedTexImage2D;
    functions->GetCompressedTexImage = st_GetCompressedTexImage;
-   functions->CompressedTextureSize = _mesa_compressed_texture_size;
 
    functions->NewTextureObject = st_NewTextureObject;
    functions->NewTextureImage = st_NewTextureImage;