fix egl config chooser bug

This PR is used to fix issue #8160 
It is better to write the config info, such as RGB565 or RGBA4444.