Low-level library for decompression and manipulation of texture blocks compressed using formats such as BC1/DXT1/S3TC, BC2-BC3, BC4/RGTC1, BC5/RGTC2, BC6 (BPTC_FLOAT), BC7 (BPTC), ETC1 and the ETC2 family, loading of KTX and DDS files, and conversion between pixel formats
ISC License
157
stars
40
forks
source link
Fix typo in ConvertPixel64RGBX16ToPixel48RGB16() #8
The variable target_pixel16_buffer was being initialized to itself (while also being uninitialized), which is probably not what we want (and undefined behaviour). The function only makes sense if it's initialized to the address of the target_pixel_buffer argument instead.
The variable
target_pixel16_buffer
was being initialized to itself (while also being uninitialized), which is probably not what we want (and undefined behaviour). The function only makes sense if it's initialized to the address of thetarget_pixel_buffer
argument instead.