c/client: Fix breakage after EGL changes
The EGL spec only allows this flag to be passed in on OpenGL ES contexts,
so check if the API is OpenGL ES when reading back this flag.
Closes #530
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2511>