umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
737 stars 169 forks source link

Don't try to merge 0 size textures #261

Closed imerr closed 5 years ago

imerr commented 5 years ago

Hey, me again with another tiny change related to removing textures from server builds that don't render anything (sorry, hope this isnt getting too annoying!)

This can happen when assets are replaced with zero sized versions to reduce size for headless builds and cause "RenderTexture.Create failed: width & height must be larger than 0" when the texture is assigned to the camera and more exceptions down the line due to bad state