Bug 1466778 - Make usable GLLibraryEGL on wayland build, r=lsalzman,stransky?

After Bug 1451183 is landed, sEGLLibrary is undefined and we should use
gl::GLLibraryEGL::Get() instead of sEGLLibrary directly.

MozReview-Commit-ID: DNEkPIEqDpK

--HG--
extra : rebase_source : b07e04ce8a9fe50d72fd857e41c1448fa917d2a9
This commit is contained in:
Hiroshi Hatake 2018-06-05 18:26:29 +09:00
parent 65169421bc
commit 8d1a2c23fa

View File

@ -708,8 +708,9 @@ GLContextEGL::CreateWaylandBufferSurface(EGLConfig config,
struct wl_egl_window *eglwindow = struct wl_egl_window *eglwindow =
wl_egl_window_create(wlsurface, pbsize.width, pbsize.height); wl_egl_window_create(wlsurface, pbsize.width, pbsize.height);
auto* egl = gl::GLLibraryEGL::Get();
EGLSurface surface = EGLSurface surface =
sEGLLibrary.fCreateWindowSurface(EGL_DISPLAY(), config, eglwindow, 0); egl->fCreateWindowSurface(EGL_DISPLAY(), config, eglwindow, 0);
if (surface) { if (surface) {
WaylandGLSurface* waylandData = WaylandGLSurface* waylandData =