Cleaned reinitialization of textures when resolution changed