diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/common/driverfuncs.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex.c | 8 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texture.c | 8 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/driverfuncs.c b/src/mesa/drivers/common/driverfuncs.c index 36ed4f8..50abfc8 100644 --- a/src/mesa/drivers/common/driverfuncs.c +++ b/src/mesa/drivers/common/driverfuncs.c @@ -111,6 +111,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver) driver->NewTextureObject = _mesa_new_texture_object; driver->DeleteTexture = _mesa_delete_texture_object; driver->NewTextureImage = _mesa_new_texture_image; + driver->DeleteTextureImage = _mesa_delete_texture_image; driver->FreeTextureImageBuffer = _mesa_free_texture_image_data; driver->MapTextureImage = _swrast_map_teximage; driver->UnmapTextureImage = _swrast_unmap_teximage; diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c index f979523..8d3cbd6 100644 --- a/src/mesa/drivers/dri/intel/intel_tex.c +++ b/src/mesa/drivers/dri/intel/intel_tex.c @@ -18,6 +18,13 @@ intelNewTextureImage(struct gl_context * ctx) return (struct gl_texture_image *) CALLOC_STRUCT(intel_texture_image); } +static void +intelDeleteTextureImage(struct gl_context * ctx, struct gl_texture_image *img) +{ + /* nothing special (yet) for intel_texture_image */ + _mesa_delete_texture_image(ctx, img); +} + static struct gl_texture_object * intelNewTextureObject(struct gl_context * ctx, GLuint name, GLenum target) @@ -207,6 +214,7 @@ intelInitTextureFuncs(struct dd_function_table *functions) functions->NewTextureObject = intelNewTextureObject; functions->NewTextureImage = intelNewTextureImage; + functions->DeleteTextureImage = intelDeleteTextureImage; functions->DeleteTexture = intelDeleteTextureObject; functions->FreeTextureImageBuffer = intel_free_texture_image_buffer; functions->MapTextureImage = intel_map_texture_image; diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index 9964663..182f444 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.c +++ b/src/mesa/drivers/dri/radeon/radeon_texture.c @@ -83,6 +83,13 @@ struct gl_texture_image *radeonNewTextureImage(struct gl_context *ctx) return CALLOC(sizeof(radeon_texture_image)); } +static void +radeonDeleteTextureImage(struct gl_context * ctx, struct gl_texture_image *img) +{ + /* nothing special (yet) for radeon_texture_image */ + _mesa_delete_texture_image(ctx, img); +} + /** * Free memory associated with this texture image. */ @@ -1162,6 +1169,7 @@ radeon_init_common_texture_funcs(radeonContextPtr radeon, struct dd_function_table *functions) { functions->NewTextureImage = radeonNewTextureImage; + functions->DeleteTextureImage = radeonDeleteTextureImage; functions->FreeTextureImageBuffer = radeonFreeTextureImageBuffer; functions->MapTexture = radeonMapTexture; functions->UnmapTexture = radeonUnmapTexture; |