EGL_EXT_image_flush_external, take 2
There are new fixes since the last version:
- FLUSH_VERTICES is called before the flush (it was missing).
- The extension is not exposed on classic drivers.
Additionally, the first 2 commits are prerequisites and fix existing issues in the code.