criticalx-bugfix in GLPlugin