adding some fixes for multi-texture batch