DevIL icon indicating copy to clipboard operation
DevIL copied to clipboard

Fix comparison of Header.MipLengths

Open ryandesign opened this issue 5 years ago • 0 comments

Fixes compile warning:

warning: comparison of array 'Header.MipLengths' equal to a null pointer is always false [-Wtautological-pointer-compare]
                                        if (Header.MipOffsets[Mip] == 0 || Header.MipLengths == 0)  // No more mipmaps in the file.
                                                                           ~~~~~~~^~~~~~~~~~    ~

ryandesign avatar Jul 05 '20 14:07 ryandesign