Skip to content
Discussion options

You must be logged in to vote

You're passing integers to 2nd to 4th arguments of stbi_load which expects pointers instead. So compiler produces code that tries to write to invalid address and thus crashes at runtime. Check your compiler output - it should produce warning about this.
See correct usage example of stbi_load in the header: https://github.com/nothings/stb/blob/master/stb_image.h#L139-L152

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quaesitor-scientiam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants