mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
support older EGL headers that require both EGLAPIENTRY and LINUX defined and have another types for EGLNativeDisplayType and EGLNativeWindowType.
This commit is contained in:
parent
e3f1c47623
commit
9bb3e90cde
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user