Resolve bug for cc.CHECK_GL_ERROR_DEBUG function in canvas mode