This MR implements support for
EGL_KHR_partial_update, as well as a couple of small cleanups in gl-renderer I noticed along the way.
Its main problem is that it has never been actually tested, since we don't have Mesa support for the extension yet. I am thus marking it WIP until I can test it on a real driver stack.
Mesa WIP implementation: mesa/mesa!227