From: Nanley Chery Date: Tue, 12 Apr 2016 21:27:42 +0000 (-0700) Subject: mesa/texstore: Use Driver.CompressedTexSubImage in the default CompressedTexImage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=696d8ff5a1f477aa0d7a9b9a2c6d6959e0d101df;p=mesa.git mesa/texstore: Use Driver.CompressedTexSubImage in the default CompressedTexImage Enable drivers to use their own implementation of this method instead of the mesa default. Since the drivers that currently overwrite dd_function_table::CompressedTexSubImage also overwrite ::CompressedTexImage, there should be no behavioral change. Signed-off-by: Nanley Chery Reviewed-by: Nicolai Hähnle --- diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index c33b1095900..48f60867088 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1243,11 +1243,11 @@ _mesa_store_compressed_teximage(struct gl_context *ctx, GLuint dims, return; } - _mesa_store_compressed_texsubimage(ctx, dims, texImage, - 0, 0, 0, - texImage->Width, texImage->Height, texImage->Depth, - texImage->TexFormat, - imageSize, data); + ctx->Driver.CompressedTexSubImage(ctx, dims, texImage, + 0, 0, 0, + texImage->Width, texImage->Height, texImage->Depth, + texImage->TexFormat, + imageSize, data); }