support older EGL headers that require both EGLAPIENTRY and LINUX defined and have another types for EGLNativeDisplayType and EGLNativeWindowType.

This commit is contained in:
Krylov Yaroslav 2019-06-24 12:02:30 +03:00
parent e3f1c47623
commit 9bb3e90cde
2 changed files with 1 additions and 4 deletions

View File

@ -45,6 +45,7 @@ typedef struct wl_display* EGLNativeDisplayType;
typedef struct wl_egl_window* EGLNativeWindowType;
#elif defined(_GLFW_VIVANTE)
#define EGLAPIENTRY
#define LINUX
#include <EGL/eglplatform.h>
#else
#error "No supported EGL platform selected"

View File

@ -52,10 +52,6 @@
#define _GLFW_PLATFORM_MONITOR_STATE //_GLFWmonitorVivante vivante
#define _GLFW_PLATFORM_CURSOR_STATE //_GLFWcursorVivante vivante
// EGL function pointer typedefs
typedef void * EGLNativeDisplayType;
typedef void * EGLNativeWindowType;
typedef EGLNativeDisplayType (EGLAPIENTRY * PFN_fbGetDisplay)(void *context);
typedef EGLNativeDisplayType (EGLAPIENTRY * PFN_fbGetDisplayByIndex)(int DisplayIndex);
typedef void (EGLAPIENTRY * PFN_fbGetDisplayGeometry)(EGLNativeDisplayType Display, int *Width, int *Height);