LazyDuchess / OpenTS2

Open source re-implementation of The Sims 2 in Unity
Mozilla Public License 2.0
221 stars 17 forks source link

Fix bug with loading non-square textures. #30

Closed ammaraskar closed 11 months ago

ammaraskar commented 11 months ago

We had a case where loading textures of sizes like 32x16 could lead to one of the dimensions width becoming 0 in the mip-loading loop. Fix this by making sure the resolution is at least 1.

LazyDuchess commented 11 months ago

Good catch!