mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
65169421bc
commit
8d1a2c23fa
@ -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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user