Skip to content

Commit

Permalink
kmsdrm: Patched to compile if EGL headers lack EGL_ANDROID_native_fen…
Browse files Browse the repository at this point in the history
…ce_sync.
  • Loading branch information
icculus committed Sep 10, 2020
1 parent 224aa45 commit c7e761f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/video/kmsdrm/SDL_kmsdrmopengles.c
Expand Up @@ -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
Expand Down

0 comments on commit c7e761f

Please sign in to comment.