Fix build without FFmpeg and with older EGL 1.5 headers

This commit is contained in:
Cameron Gutman 2020-05-16 13:25:10 -07:00
parent c58d21375c
commit 4bbe571f5f
2 changed files with 4 additions and 1 deletions

View file

@ -17,6 +17,9 @@
#ifndef EGL_VERSION_1_5
typedef intptr_t EGLAttrib;
#endif
#if !defined(EGL_VERSION_1_5) || !defined(EGL_EGL_PROTOTYPES)
typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
#endif

View file

@ -10,4 +10,4 @@ packagesExist(mmal) {
PKGCONFIG += mmal
}
PKGCONFIG += sdl2 egl
PKGCONFIG += sdl2 egl libavcodec libavutil