emulator/opengl: A few debugging, stability improvements to emugl

* Zero output parameters so that errors don't return random
  data (even if the target code was careful to zero its output
  parameters.)  Spec says that we will not modify values in case of
  an error, which is not currently possible, but at least this
  means we return deterministic values.

* Similarly, avoid passing uninitialized data if an error occurs
  during getting the viewport.

* Fix a bug where glGetError may be called when NULL is decoded in
  CHECK_GL_ERROR mode.

* Output more information about the stream in DEBUG_PRINTOUT mode to
  help separate from multiple streams.

Change-Id: I31706b92642efe4c7ed38d178b49e72835a9c9a6
3 files changed