Replaced assert(glGetError()) with gl_check_gl_error added