implemented GLBackend fix to issue/658
Merge pull request #196 from globaleaks/issue/658

implemented GLBackend fix to issue/658