Skip to content

Commit

Permalink
kram - print the glBase/Internal format.
Browse files Browse the repository at this point in the history
For some reason, on several libktx images glFormat is 0.
  • Loading branch information
alecazam committed May 9, 2021
1 parent c71f613 commit 38d0725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkram/kram/KTXImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ bool KTXImage::open(const uint8_t* imageData, size_t imageDataLength)
}

if (pixelFormat == MyMTLPixelFormatInvalid) {
KLOGE("kram", "unsupported texture format glType 0x%0X", header.glFormat);
KLOGE("kram", "unsupported texture format glBase/glInternalFormat 0x%04X 0x%04X", header.glBaseInternalFormat, header.glInternalFormat);
return false;
}

Expand Down

0 comments on commit 38d0725

Please sign in to comment.