diff options
author | Nanley Chery <[email protected]> | 2016-04-12 14:27:42 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2016-04-15 15:06:27 -0700 |
commit | 696d8ff5a1f477aa0d7a9b9a2c6d6959e0d101df (patch) | |
tree | 141278fb4ac22cc4985260d6c3ad580f33106767 /src/mesa/main/texstore.c | |
parent | 5ec4ecce44cfcce67391a25884bd0ef665957398 (diff) |
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 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r-- | src/mesa/main/texstore.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |