mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[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:
@@ -229,6 +229,11 @@ static EGLNativeWindowType sdlGetEGLNativeWindow(void)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void sdlEGLSwapBuffers(EGLDisplay display, EGLSurface surface)
|
||||
{
|
||||
eglSwapBuffers(display, surface);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void sdlSwapBuffers(void)
|
||||
@@ -470,6 +475,7 @@ struct LG_DisplayServerOps LGDS_SDL =
|
||||
#ifdef ENABLE_EGL
|
||||
.getEGLDisplay = sdlGetEGLDisplay,
|
||||
.getEGLNativeWindow = sdlGetEGLNativeWindow,
|
||||
.eglSwapBuffers = sdlEGLSwapBuffers,
|
||||
#endif
|
||||
|
||||
.glSwapBuffers = sdlSwapBuffers,
|
||||
|
Reference in New Issue
Block a user