mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-26 04:58:30 +00:00
Review void pointer incrementation
This commit is contained in:
@@ -3010,7 +3010,7 @@ static void SaveKTX(Image image, const char *fileName)
|
||||
{
|
||||
unsigned int dataSize = GetPixelDataSize(width, height, image.format);
|
||||
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;
|
||||
height /= 2;
|
||||
|
Reference in New Issue
Block a user