added opengl error printing function