[client] wayland: add stubs for OpenGL functions

This allows the client to run on Wayland, even though OpenGL doesn't work.
This commit is contained in:
Quantum authored and Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 06af101bf9
commit a56e363e39
1 file changed
+24
+24
View File
@@ -619,6 +619,26 @@ static void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface)
}
#endif
static LG_DSGLContext waylandGLCreateContext(void)
{
return NULL;
}
static void waylandGLDeleteContext(LG_DSGLContext context)
{
// FIXME: implement.
}
static void waylandGLMakeCurrent(LG_DSGLContext context)
{
// FIXME: implement.
}
static void waylandGLSetSwapInterval(int interval)
{
// FIXME: implement.
}
static void waylandGLSwapBuffers(void)
{
// FIXME: implement.
@@ -1144,6 +1164,10 @@ struct LG_DisplayServerOps LGDS_Wayland =
.eglSwapBuffers = waylandEGLSwapBuffers,
#endif
.glCreateContext = waylandGLCreateContext,
.glDeleteContext = waylandGLDeleteContext,
.glMakeCurrent = waylandGLMakeCurrent,
.glSetSwapInterval = waylandGLSetSwapInterval,
.glSwapBuffers = waylandGLSwapBuffers,
.showPointer = waylandShowPointer,