summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_cpal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/texcompress_cpal.c')
-rw-r--r--src/mesa/main/texcompress_cpal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texcompress_cpal.c b/src/mesa/main/texcompress_cpal.c
index 2398ded69f4..48665212d98 100644
--- a/src/mesa/main/texcompress_cpal.c
+++ b/src/mesa/main/texcompress_cpal.c
@@ -208,7 +208,7 @@ _mesa_cpal_compressed_teximage2d(GLenum target, GLint level,
/* allocate and fill dest image buffer */
if (palette) {
- image = (GLubyte *) malloc(num_texels * info->size);
+ image = malloc(num_texels * info->size);
paletted_to_color(info, palette, indices, num_texels, image);
}