Bug 1553887 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> GLContextEGL::MakeCurrentImpl() uses mFallbackSurface if no EGLSurface is set to GLContextEGL. Then I wonder if it is a problem of mFallbackSurface on Wayland.

When I tested on wayland on  Ubuntu 18.04, mFallbackSurface creation was failed because KHR_surfaceless_context was not supported.
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> GLContextEGL::MakeCurrentImpl() uses mFallbackSurface if no EGLSurface is set to GLContextEGL. Then I wonder if it is a problem of mFallbackSurface on Wayland.

When I tested on wayland on  Ubuntu 18.04, mFallbackSurface was not created because KHR_surfaceless_context was supported. In this case, we should not need mFallbackSurface .
https://searchfox.org/mozilla-central/source/gfx/gl/GLContextProviderEGL.cpp#189
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> GLContextEGL::MakeCurrentImpl() uses mFallbackSurface if no EGLSurface is set to GLContextEGL. Then I wonder if it is a problem of mFallbackSurface on Wayland.

When I tested on wayland on  Ubuntu 18.04, mFallbackSurface was not created because KHR_surfaceless_context was supported on wayland. In this case, we should not need mFallbackSurface .
https://searchfox.org/mozilla-central/source/gfx/gl/GLContextProviderEGL.cpp#189
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> GLContextEGL::MakeCurrentImpl() uses mFallbackSurface if no EGLSurface is set to GLContextEGL. Then I wonder if it is a problem of mFallbackSurface on Wayland.

When I tested on wayland on  Ubuntu 18.04, mFallbackSurface was not created because KHR_surfaceless_context was supported on wayland. In this case, we should not need mFallbackSurface .
https://searchfox.org/mozilla-central/source/gfx/gl/GLContextProviderEGL.cpp#189

From the following, No surface means, that EGL is the same as a context with an incomplete framebuffer object bound.
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_surfaceless_context.txt
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> GLContextEGL::MakeCurrentImpl() uses mFallbackSurface if no EGLSurface is set to GLContextEGL. Then I wonder if it is a problem of mFallbackSurface on Wayland.

When I tested on wayland on  Ubuntu 18.04, mFallbackSurface was not created because KHR_surfaceless_context was supported on wayland. 
https://searchfox.org/mozilla-central/source/gfx/gl/GLContextProviderEGL.cpp#189

From the following, No surface means, that EGL is the same as a context with an incomplete framebuffer object bound.
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_surfaceless_context.txt
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> GLContextEGL::MakeCurrentImpl() uses mFallbackSurface if no EGLSurface is set to GLContextEGL. Then I wonder if it is a problem of mFallbackSurface on Wayland.

When I tested on wayland on  Ubuntu 18.04, mFallbackSurface was not created because KHR_surfaceless_context was supported on wayland. 
https://searchfox.org/mozilla-central/source/gfx/gl/GLContextProviderEGL.cpp#189

From the following, No surface means, that EGL is the same as a context with an incomplete framebuffer object bound. It could cause GL_INVALID_FRAMEBUFFER_OPERATION error if rendering to default frame buffer happens.
https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_surfaceless_context.txt

Back to Bug 1553887 Comment 4