mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[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:
parent
06af101bf9
commit
a56e363e39
@ -619,6 +619,26 @@ static void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface)
|
|||||||
}
|
}
|
||||||
#endif
|
#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)
|
static void waylandGLSwapBuffers(void)
|
||||||
{
|
{
|
||||||
// FIXME: implement.
|
// FIXME: implement.
|
||||||
@ -1144,6 +1164,10 @@ struct LG_DisplayServerOps LGDS_Wayland =
|
|||||||
.eglSwapBuffers = waylandEGLSwapBuffers,
|
.eglSwapBuffers = waylandEGLSwapBuffers,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
.glCreateContext = waylandGLCreateContext,
|
||||||
|
.glDeleteContext = waylandGLDeleteContext,
|
||||||
|
.glMakeCurrent = waylandGLMakeCurrent,
|
||||||
|
.glSetSwapInterval = waylandGLSetSwapInterval,
|
||||||
.glSwapBuffers = waylandGLSwapBuffers,
|
.glSwapBuffers = waylandGLSwapBuffers,
|
||||||
|
|
||||||
.showPointer = waylandShowPointer,
|
.showPointer = waylandShowPointer,
|
||||||
|
Loading…
Reference in New Issue
Block a user