Added better Gl error function