Skip to content

Commit

Permalink
fixing load_png() so it checks the correct pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
richgel999 committed Nov 15, 2024
1 parent 7c046f8 commit 6588a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder/basisu_enc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ namespace basisu

uint32_t width = 0, height = 0, num_chans = 0;
void* pImage = pv_png::load_png(pBuf, buf_size, 4, width, height, num_chans);
if (!pBuf)
if (!pImage)
{
error_printf("pv_png::load_png failed while loading image \"%s\"\n", pFilename);
return false;
Expand Down

0 comments on commit 6588a8a

Please sign in to comment.