Skip to content

Commit

Permalink
linux-capture: Fail to load when running on EGL
Browse files Browse the repository at this point in the history
Right now, linux-capture hard-depends on GLX. Disable it when
running under EGL.
  • Loading branch information
GeorgesStavracas committed Apr 9, 2020
1 parent 5b84dd2 commit e268252
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/linux-capture/linux-capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ extern void xcomposite_unload(void);

bool obs_module_load(void)
{
if (obs_get_platform() != OBS_PLATFORM_DEFAULT) {
blog(LOG_ERROR, "Cannot run with EGL platforms");
return false;
}

obs_register_source(&xshm_input);
xcomposite_load();
return true;
Expand Down

0 comments on commit e268252

Please sign in to comment.