base: handle bc7 in gpu_get_texture_pixels

This commit is contained in:
luboslenco
2026-06-15 14:58:18 +02:00
parent 996ba0e760
commit 88b413d1f7
-1
View File
@@ -939,7 +939,6 @@ buffer_t *gpu_get_texture_pixels(gpu_texture_t *image) {
#ifdef WITH_BC7
if (image->format == GPU_TEXTURE_FORMAT_RGBA32_BC7) {
uint8_t *compressed = image->buffer->buffer;
image->format = GPU_TEXTURE_FORMAT_RGBA32;
image->buffer->buffer = malloc((size_t)image->width * image->height * 4);
bc7enc_decompress(image->buffer->buffer, compressed, image->width, image->height);
free(compressed);