[client] wayland: implement window creation for egl

This commit implements window creation and resize logic, allowing the desktop
to be drawn.
This commit is contained in:
Quantum
2021-01-26 18:59:10 -05:00
committed by Geoffrey McRae
parent f4c1927f56
commit 9f0b99dac0
8 changed files with 248 additions and 54 deletions

View File

@@ -814,6 +814,11 @@ static EGLNativeWindowType x11GetEGLNativeWindow(void)
{
return (EGLNativeWindowType)x11.window;
}
static void x11EGLSwapBuffers(EGLDisplay display, EGLSurface surface)
{
eglSwapBuffers(display, surface);
}
#endif
static void x11GLSwapBuffers(void)
@@ -1370,6 +1375,7 @@ struct LG_DisplayServerOps LGDS_X11 =
#ifdef ENABLE_EGL
.getEGLDisplay = x11GetEGLDisplay,
.getEGLNativeWindow = x11GetEGLNativeWindow,
.eglSwapBuffers = x11EGLSwapBuffers,
#endif
.glSwapBuffers = x11GLSwapBuffers,
.showPointer = x11ShowPointer,