Some changes since the last version:
- Get rid of some unecessary context switches
- Remove EGLSurface from current context on deletion with
eglMakeCurrent() since an EGLSurface can stay around after deletion
for as long as it's current
- Use EGL_CONTEXT_PRIORITY_LEVEL_IMG to set our rendering priority to
high, speeds things up a tiny bit more.