closed #3684, Set shader program before TextureAtlas is rendered.
closed #3684, Optimize the code of TextureAtlas test case.
Merge pull request #5490 from natural-law/issue3684

closed #3684: Set shader program before TextureAtlas is rendered.