Clear the global PGL on dispose().
Merge pull request #2279 from jdf/master

Clear the global PGL on dispose().