Browse Source

Platform: properly tell GLFW to use EGL if desired.

This was somehow included only in the GLES branch, not on desktop, and I
didn't realize that until now.
pull/620/head
Vladimír Vondruš 3 years ago
parent
commit
71516ab436
  1. 4
      src/Magnum/Platform/GlfwApplication.cpp

4
src/Magnum/Platform/GlfwApplication.cpp

@ -458,10 +458,10 @@ bool GlfwApplication::tryCreate(const Configuration& configuration, const GLConf
}
#else
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
#endif
#ifdef MAGNUM_TARGET_EGL /* Force EGL if desired */
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
#endif
#endif
/* Request usable version otherwise */
} else {
@ -485,10 +485,10 @@ bool GlfwApplication::tryCreate(const Configuration& configuration, const GLConf
#endif
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
#endif
#ifdef MAGNUM_TARGET_EGL /* Force EGL if desired */
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
#endif
#endif
}
/* Create window. Hide it by default so we don't have distracting window

Loading…
Cancel
Save