kmsdrm: Patched to compile if EGL headers lack EGL_ANDROID_native_fence_sync.

This commit is contained in:
Ryan C. Gordon 2020-09-10 15:05:55 -04:00
parent 224aa45b59
commit c7e761f872
1 changed files with 12 additions and 0 deletions

View File

@ -32,6 +32,18 @@
#define EGL_PLATFORM_GBM_MESA 0x31D7
#endif
#ifndef EGL_SYNC_NATIVE_FENCE_ANDROID
#define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
#endif
#ifndef EGL_SYNC_NATIVE_FENCE_FD_ANDROID
#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
#endif
#ifndef EGL_NO_NATIVE_FENCE_FD_ANDROID
#define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
#endif
/* EGL implementation of SDL OpenGL support */
void