Skip to content

Cant load bmp file. #1354

Answered by PathogenDavid
T0biasCZe asked this question in Q&A
Jul 31, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

You should only call stbi_failure_reason when pixels is null.

(Your image is loading just fine. The error about the PNG signature is a stale message left over from when it checked if the file was a PNG before checking if it was a BMP.)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nothings
Comment options

Answer selected by nothings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants