emulator/opengl: Backport fixes from master branch.

This back-ports several fixes from aosp/master branch into idea133:

  145e25 Fix the Google Maps crash issue
  e33909 Support GL_MAX_TEXTURE_SIZE case to glGetIntegerv API
  c6dd20 Fix Mac build.

Change-Id: I26a05956c3b926dddeb638c6cff979199075ecbb
4 files changed