From 08b4ba2cf057963d6cd3da0c0dc11deea02a1ffe Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Mon, 3 Aug 2020 17:33:40 +0000 Subject: [PATCH] Add an upstream patch to fix build without OpenGL. https://github.com/gpac/gpac/commit/d5eedf0d5c2261e2dd228ceab2eadffdaaec1d0c PR: 248418 --- .../files/patch-modules_x11__out_x11__out.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 multimedia/gpac-libgpac/files/patch-modules_x11__out_x11__out.c diff --git a/multimedia/gpac-libgpac/files/patch-modules_x11__out_x11__out.c b/multimedia/gpac-libgpac/files/patch-modules_x11__out_x11__out.c new file mode 100644 index 000000000000..41bfd949b251 --- /dev/null +++ b/multimedia/gpac-libgpac/files/patch-modules_x11__out_x11__out.c @@ -0,0 +1,17 @@ +--- modules/x11_out/x11_out.c.orig 2020-06-16 16:17:17 UTC ++++ modules/x11_out/x11_out.c +@@ -975,10 +975,14 @@ GF_Err X11_ProcessEvent (struct _video_out * vout, GF_ + case GF_EVENT_SET_GL: + if (!xWindow->output_3d) return GF_OK; + ++#ifdef GPAC_HAS_OPENGL + if ( ! glXMakeCurrent(xWindow->display, xWindow->fullscreen ? xWindow->full_wnd : xWindow->wnd, xWindow->glx_context) ) { + GF_LOG(GF_LOG_ERROR, GF_LOG_MMIO, ("[X11] Cannot make context current\n")); + return GF_IO_ERR; + } ++#else ++ return GF_NOT_SUPPORTED; ++#endif + break; + } + } else {