Review void pointer incrementation

This commit is contained in:
Ray 2018-10-01 15:45:01 +02:00
parent d67edb591a
commit 589152b658

View File

@ -3010,7 +3010,7 @@ static void SaveKTX(Image image, const char *fileName)
{ {
unsigned int dataSize = GetPixelDataSize(width, height, image.format); unsigned int dataSize = GetPixelDataSize(width, height, image.format);
fwrite(&dataSize, 1, sizeof(unsigned int), ktxFile); fwrite(&dataSize, 1, sizeof(unsigned int), ktxFile);
fwrite(image.data + dataOffset, 1, dataSize, ktxFile); fwrite((unsigned char *)image.data + dataOffset, 1, dataSize, ktxFile);
width /= 2; width /= 2;
height /= 2; height /= 2;