Created attachment 90[details]
Patch for loader.c to fix this bug
In file "loader.c" there is code:
if (*pIsMipmapped) {
if (texinfo.generateMipmaps || header.numberOfMipmapLevels > 1)
*pIsMipmapped = GL_TRUE;
else
*pIsMipmapped = GL_FALSE;
}
Documentation states that pIsMipmapped can be NULL, but in this case you will get Access Violation (derefrence from NULL). Also *pIsMipmapped will be only set if (*pIsMipmapped != 0), so result value pIsMipmapped from ktxLoadTextureF/N might be unreliable.
To fix it, change line:
if (*pIsMipmapped) {
to:
if (pIsMipmapped) {
(Patch included in attachment from latests svn sources)