Improve performance of Context2D on OpenGL
The old code released the graphics resources after every line or text draw call. Then on the next call it has to recreate them which is expensive.
This MR changes that so that the resources stick around to be reused.