TorqueGameEngines / Torque3D

Other
1.45k stars 159 forks source link

Update bitmapSTB.cpp #1246

Closed marauder2k7 closed 5 months ago

marauder2k7 commented 5 months ago

stb loader was spamming NO SOI with the function of stbi_info_from_memory because it checks for a jpeg first. This will always return an error if you are sending any other format. Remove this check and just load the memory stream. if it fails to return pixeldata then we have an error.