Comment 9 for bug 1520537

Chris Halse Rogers (raof) wrote :

So, a question: Why is oxide using running-on-Mir-ness to determine whether or not to ask for a PBUFFER surface? Why not unconditionally ask for just EGL_WINDOW_BIT?

If you get a different, better, codepath when the surface supports EGL_PBUFFER_BIT then you can look through the list returned by eglChooseConfig for a config that has that bit set. This seems to be (a) a better expression of your actual requirements, (b) less likely to break, due to not relying on Mir-internal interfaces.