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