add gl check
Merge pull request #2 from Ovilia/master

Add gl check