Skip to content

Commit

Permalink
fixed x11 compil with no 3D
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Jun 22, 2020
1 parent e8a17a7 commit d5eedf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/x11_out/x11_out.c
Expand Up @@ -975,10 +975,14 @@ GF_Err X11_ProcessEvent (struct _video_out * vout, GF_Event * evt)
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 {
Expand Down

0 comments on commit d5eedf0

Please sign in to comment.