We move the EGL and GLES2 output repaint code into a new gles2-render.c file. The eglMakeCurrent, glViewPort, surface loop etc was duplicated across all backends, but this patch moves it to a new file.