mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-10-21 16:30:52 +00:00
fixing load_png() so it checks the correct pointer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user