Kaynağa Gözat

kmsdrm: Patched to compile if EGL headers lack EGL_ANDROID_native_fence_sync.

Ryan C. Gordon 5 yıl önce
ebeveyn
işleme
c7e761f872
1 değiştirilmiş dosya ile 12 ekleme ve 0 silme
  1. 12 0
      src/video/kmsdrm/SDL_kmsdrmopengles.c

+ 12 - 0
src/video/kmsdrm/SDL_kmsdrmopengles.c

@@ -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