hglm / detex

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

Closed inequation closed 7 years ago

inequation commented 7 years ago

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.

inequation commented 7 years ago

OK, I've just noticed this is a duplicate of #7. Closing and fingers crossed for merging that one in. ;)