Revert "Fix EGL no config error"

This reverts commit a8c737751c985f70cc3a8099948afbb645015232.