Avoid unnecessary memory allocation
Merge pull request #1942 from obigu/feature

Avoid unnecessary memory allocation on ImmediateModeRenderer20 end() call