Browse Source

Fix: unable to create gl context on desktop with ANGLE + GLFW3

pull/470/head
Tracy Ma 6 years ago
parent
commit
033df97445
  1. 2
      src/Magnum/Platform/GlfwApplication.cpp

2
src/Magnum/Platform/GlfwApplication.cpp

@ -451,6 +451,7 @@ bool GlfwApplication::tryCreate(const Configuration& configuration, const GLConf
} }
#else #else
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
#endif #endif
/* Request usable version otherwise */ /* Request usable version otherwise */
@ -475,6 +476,7 @@ bool GlfwApplication::tryCreate(const Configuration& configuration, const GLConf
#endif #endif
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
#endif #endif
} }

Loading…
Cancel
Save