fixed CHECK_GL_ERROR_DEBUG