EGL: Replace native handle macros with functions

This change is in preparation both for EGL_EXT_platform_base and runtime
GLFW platform selection.

Related to #1691.
This commit is contained in:
Camilla Löwy
2020-06-03 20:49:36 +02:00
parent b66f105f3e
commit d7f7b0e1b5
12 changed files with 51 additions and 34 deletions
+10
View File
@@ -1721,6 +1721,16 @@ const char* _glfwPlatformGetClipboardString(void)
} // autoreleasepool
}
EGLNativeDisplayType _glfwPlatformGetEGLNativeDisplay(void)
{
return EGL_DEFAULT_DISPLAY;
}
EGLNativeWindowType _glfwPlatformGetEGLNativeWindow(_GLFWwindow* window)
{
return window->ns.layer;
}
void _glfwPlatformGetRequiredInstanceExtensions(char** extensions)
{
if (_glfw.vk.KHR_surface && _glfw.vk.EXT_metal_surface)