mousebird-consulting-inc / WhirlyGlobe

WhirlyGlobe Development
Other
828 stars 254 forks source link

Crash when calling ResourceRefsMTL::addTexture in WrapperMTL.MM #1607

Open AmineNac opened 6 months ago

AmineNac commented 6 months ago

Crash caused by adding a nil value to sets in WrapperMTL.mm' function:

tex.tex is nil, resulting in a crash when added to textures and texturesToHold.

Screenshot 2024-03-07 at 17 12 22
sjg-wdw commented 6 months ago

Strange. I'd say the workaround would be just to check, but there's probably a texture allocation failure earlier.