(Lakka) Stop initialization if gl is not active
Merge pull request #987 from heuripedes/master

(Lakka) Stop initialization if gl is not active