eglDestroyContext/Surface already do the right thing for the current …
…context. https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglDestroyContext.xhtml > 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.