Create the EGL surface with the correct format.

The EGL surfaces must have a format compatible with the EGL context
that makes them current, otherwise an EGL_BAD_MATCH error will be
issued. So create the surfaces using the format of the context,
and not the window's requested format.

Change-Id: I2622e69ad682880c7c542e67e8066da7f6342d77