The immediate cause is that in a nested process there is no current EGL context when run_mir() calls the init code. However, the example code that initialises the buffers assumes there's an existing EGL context.
It seems there is a current egl context when not running in nested mode (but it isn't obvious that there should be).
The immediate cause is that in a nested process there is no current EGL context when run_mir() calls the init code. However, the example code that initialises the buffers assumes there's an existing EGL context.
It seems there is a current egl context when not running in nested mode (but it isn't obvious that there should be).