build fix

This commit is contained in:
Toad King 2014-02-19 17:52:47 -05:00
parent 518b53e21c
commit e09b7fb60c

View File

@ -272,7 +272,7 @@ static bool gx_convert_texture32(struct texture_image *image)
{
// memory allocation in libogc is extremely primitive so try to avoid gaps in memory when converting
// by copying over to temp buffer first then converting over into main buffer again
void *tmp = malloc(width * height * sizeof(uint32_t));
void *tmp = malloc(image->width * image->height * sizeof(uint32_t));
if (!tmp)
{