GL 3.1 core context cleanup.