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 f09106b..fe659a6 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 64bf9cb..5f7c9cb 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 f68620a..8ba7c8e 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;