25 lines
679 B
Diff
25 lines
679 B
Diff
--- a/eglplatform.h 2022-06-16 16:11:27.934535986 +0200
|
|
+++ b/eglplatform.h 2022-06-16 16:17:35.649358663 +0200
|
|
@@ -93,7 +93,7 @@
|
|
typedef struct egl_native_pixmap_t* EGLNativePixmapType;
|
|
typedef void* EGLNativeDisplayType;
|
|
|
|
-#elif defined(__unix__)
|
|
+#elif defined(USE_X11)
|
|
|
|
/* X11 (tentative) */
|
|
#include <X11/Xlib.h>
|
|
@@ -103,6 +103,12 @@
|
|
typedef Pixmap EGLNativePixmapType;
|
|
typedef Window EGLNativeWindowType;
|
|
|
|
+#elif defined(__unix__)
|
|
+
|
|
+typedef void *EGLNativeDisplayType;
|
|
+typedef khronos_uintptr_t EGLNativePixmapType;
|
|
+typedef khronos_uintptr_t EGLNativeWindowType;
|
|
+
|
|
#else
|
|
#error "Platform not recognized"
|
|
#endif
|