mesa: remove ctx->Driver.Map/UnmapTexture() hooks
authorBrian Paul <brianp@vmware.com>
Mon, 16 Jan 2012 20:06:03 +0000 (13:06 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 21:12:37 +0000 (14:12 -0700)
No longer used anywhere.

src/mesa/drivers/common/driverfuncs.c
src/mesa/main/dd.h
src/mesa/swrast/s_context.c

index c6b42a21d931179ca84bda7eaf13670d4bd91bce..1df8381737fa791b64416c98a775b135f2f0af75 100644 (file)
@@ -119,8 +119,6 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    driver->FreeTextureImageBuffer = _swrast_free_texture_image_buffer;
    driver->MapTextureImage = _swrast_map_teximage;
    driver->UnmapTextureImage = _swrast_unmap_teximage;
-   driver->MapTexture = NULL;
-   driver->UnmapTexture = NULL;
    driver->DrawTex = _mesa_meta_DrawTex;
 
    /* Vertex/fragment programs */
index 8393f328f443b37aa0d278846285284ae7d5d240..0641e3bbabc41b01c5b7a0767e47e200d5c15332 100644 (file)
@@ -476,11 +476,6 @@ struct dd_function_table {
                             struct gl_texture_image *texImage,
                             GLuint slice);
 
-   /** Map texture image data into user space */
-   void (*MapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
-   /** Unmap texture images from user space */
-   void (*UnmapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
-
    /** For GL_ARB_texture_storage.  Allocate memory for whole mipmap stack.
     * All the gl_texture_images in the texture object will have their
     * dimensions, format, etc. initialized already.
index 817f1376461409c7c4ba841f752b26fffcae3e7b..14cb9b180c33352e63062e2bdbbec5b0dbd269fa 100644 (file)
@@ -752,9 +752,6 @@ _swrast_CreateContext( struct gl_context *ctx )
    swrast->Driver.SpanRenderStart = _swrast_span_render_start;
    swrast->Driver.SpanRenderFinish = _swrast_span_render_finish;
 
-   ctx->Driver.MapTexture = _swrast_map_texture;
-   ctx->Driver.UnmapTexture = _swrast_unmap_texture;
-
    for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++)
       swrast->TextureSample[i] = NULL;