Set GL_INVALID_OPERATION if state is null instead of aborting

bug: 117884261

- Proximate reason to do this is that the debug build for host side has
asserts enabled, and it turns out that the assert trips for m_state !=
NULL when quering host capabilities from egl.cpp. In this case, the host
context should be alive and it is ok to use that to derive the guest
context state.
- It is nicer to real apps to not abort if the user called glGetIntegerv
before making a context current anyway.

Change-Id: I9d9c7ece594c4cbc8d90d9da3ac63ae1320cef58
1 file changed
tree: 02c6d4b957cdcc20bf9cb0af8f6fa2004a452210
  1. .vscode/
  2. host/
  3. shared/
  4. system/
  5. tests/
  6. Android.mk
  7. common.mk
  8. README