Prevent infinite loop when textures haven't loaded