Record: Make sure we create the context properly
Otherwise eglCreateImageKHR gets super confused and fails with an unintelligible error message.
Note: Regarding the EGL_SURFACE_TYPE being EGL_WINDOW_BIT, I left it like this because it's the only one I could make work. The rest would fail just as if we had no attribs at all.