Merge pull request #3049 from wqyfavor/optimize-heron

Optimize for custom render target.