ref #15 add CheckGLError
ref #15 merge
ref #15