Fixed libgl bug