diff --git a/gfx/gl/GLContextProviderEGL.cpp b/gfx/gl/GLContextProviderEGL.cpp index e63a60baf22c..52e610629c9a 100644 --- a/gfx/gl/GLContextProviderEGL.cpp +++ b/gfx/gl/GLContextProviderEGL.cpp @@ -708,8 +708,9 @@ GLContextEGL::CreateWaylandBufferSurface(EGLConfig config, struct wl_egl_window *eglwindow = wl_egl_window_create(wlsurface, pbsize.width, pbsize.height); + auto* egl = gl::GLLibraryEGL::Get(); EGLSurface surface = - sEGLLibrary.fCreateWindowSurface(EGL_DISPLAY(), config, eglwindow, 0); + egl->fCreateWindowSurface(EGL_DISPLAY(), config, eglwindow, 0); if (surface) { WaylandGLSurface* waylandData =