libobs: Add a Wayland platform
Introduce the OBS_NIX_PLATFORM_WAYLAND enum value, and try to detect it when OBS Studio runs by looking into the platform name.
This commit is contained in:
@@ -28,7 +28,7 @@ elseif(APPLE)
|
||||
${COCOA}
|
||||
${IOSURF}
|
||||
${OPENGL_gl_LIBRARY})
|
||||
else() #This needs to change to be more specific to get ready for Wayland
|
||||
else()
|
||||
find_package(XCB COMPONENTS XCB REQUIRED)
|
||||
find_package(X11_XCB REQUIRED)
|
||||
|
||||
|
@@ -32,6 +32,11 @@ static void init_winsys(void)
|
||||
case OBS_NIX_PLATFORM_X11_EGL:
|
||||
gl_vtable = gl_x11_egl_get_winsys_vtable();
|
||||
break;
|
||||
#ifdef ENABLE_WAYLAND
|
||||
case OBS_NIX_PLATFORM_WAYLAND:
|
||||
blog(LOG_ERROR, "EGL/Wayland not implemented yet");
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
assert(gl_vtable != NULL);
|
||||
|
Reference in New Issue
Block a user