add return
This commit is contained in:
@ -41,6 +41,8 @@ namespace Hazel
|
||||
if (!data)
|
||||
{
|
||||
HZ_CORE_ERROR("Failed to load texture {0}", path);
|
||||
stbi_image_free(data);
|
||||
return;
|
||||
}
|
||||
m_Width = width;
|
||||
m_Height = height;
|
||||
|
||||
Reference in New Issue
Block a user