mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
Add an upstream patch to fix build without OpenGL.
d5eedf0d5c
PR: 248418
This commit is contained in:
parent
87ae0cfd28
commit
08b4ba2cf0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544089
@ -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 {
|
Loading…
Reference in New Issue
Block a user