summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2019-06-06 23:52:53 +0200
committerRay <[email protected]>2019-06-06 23:52:53 +0200
commitdee602464bcf17d6be6e0bbe215ed79140d11a8f (patch)
treed04d625a5cd54760f4f3bae0faea46cadb5d853e /src/core.c
parentbaf225dc01250bb5c2918b854c24c6e45ccdea4d (diff)
parente1f3f84e84c3f3b8cb831791b8400e50340e4064 (diff)
downloadraylib-dee602464bcf17d6be6e0bbe215ed79140d11a8f.tar.gz
raylib-dee602464bcf17d6be6e0bbe215ed79140d11a8f.zip
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 26a8b2a4..45539d24 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2470,7 +2470,11 @@ static bool InitGraphicsDevice(int width, int height)
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
- glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NATIVE_CONTEXT_API); // Alternative: GLFW_EGL_CONTEXT_API (ANGLE)
+#if defined(PLATFORM_DESKTOP)
+ glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_EGL_CONTEXT_API);
+#else
+ glfwWindowHint(GLFW_CONTEXT_CREATION_API, GLFW_NATIVE_CONTEXT_API);
+#endif
}
if (fullscreen)