Spine-tk2d runtime bugfix with shared materials

There was bug in merging stuff between different pull requests. This pull request should fix multi-atlas support in spine-tk2d runtime