fixed re-initialization of textures after change of renderer