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
+2 -2
View File
@@ -395,7 +395,7 @@ GLFWbool _glfwInitEGL(void)
return GLFW_FALSE;
}
_glfw.egl.display = eglGetDisplay(_GLFW_EGL_NATIVE_DISPLAY);
_glfw.egl.display = eglGetDisplay(_glfwPlatformGetEGLNativeDisplay());
if (_glfw.egl.display == EGL_NO_DISPLAY)
{
_glfwInputError(GLFW_API_UNAVAILABLE,
@@ -601,7 +601,7 @@ GLFWbool _glfwCreateContextEGL(_GLFWwindow* window,
window->context.egl.surface =
eglCreateWindowSurface(_glfw.egl.display,
config,
_GLFW_EGL_NATIVE_WINDOW,
_glfwPlatformGetEGLNativeWindow(window),
attribs);
if (window->context.egl.surface == EGL_NO_SURFACE)
{