I’ve solved a problem by pulling the second monitor’s plug out.
CC_BREAK_IF(EGL_FALSE == eglChooseConfig(eglDisplay, aConfigAttribs, &eglConfig, 1, &iConfigs)
|| (iConfigs != 1));@
At first, the eglChooseconfig func works but takes a long time(about 30 seconds), then I update the driver of my display card, unfortunately, this func return false.
Finally，the extra monitor is removed and the program runs well, so I’m sure this problem is related to dual-monitor.
BTW, My computer is Thinkpad T410s.