Fix eglDestroyContext and glTexImage2D

1. When destroy context that is in use, EGL spec says:
   "If the EGL rendering context context is not current to any thread,
   eglDestroyContext destroys it immediately. Otherwise, context is
   destroyed when it becomes not current to any thread."
2. When calling glTexImage2D, should bind the correct texture first.

Change-Id: I6c779b71d1e6002b8a484477921ba323acbd986e
4 files changed
tree: 21346608f7e49296fdaf32871b3b6a445f5cddda
  1. host/
  2. shared/
  3. system/
  4. tests/
  5. Android.mk
  6. common.mk
  7. README