Source
void activateRenderProgram(RenderProgram renderProgram) { if (!identical(renderProgram, _activeRenderProgram)) { _activeRenderProgram.flush(); _activeRenderProgram = renderProgram; _activeRenderProgram.activate(this); _activeRenderProgram.projectionMatrix = _projectionMatrix; } }