EGL/RPI [WIP]

Since the MultiContext merge, RPI support is broken, fixes will be in here