fix egl config chooser bug
remove test code
Merge pull request #8172 from dabingnn/v3_fixEGLConfigCrashBug

fix egl config chooser bug