diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-03-10 17:19:07 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-03-10 17:19:07 +0200 |
commit | 38ee16d81d5d6c41f9babc1ee2cf7bb2648704d6 (patch) | |
tree | 1cca38c7fc3449c15e782f5e85fd40d3493b9cc7 | |
parent | c3c9bf704f39cb2b33d03bdc994b5b06af0af258 (diff) |
android: Create GLFW window with no client API
-rw-r--r-- | src/libandroid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libandroid.c b/src/libandroid.c index 7bf9acf..1d677ae 100644 --- a/src/libandroid.c +++ b/src/libandroid.c @@ -480,9 +480,9 @@ ANativeWindow_fromSurface(JNIEnv* env, jobject surface) glfwInit(); fprintf(stderr, "glfw: %s\n", glfwGetVersionString()); glfwSetErrorCallback(glfw_error_cb); + glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); window->glfw = glfwCreateWindow(1024, 768, "ANativeWindow", NULL, NULL); assert(window->glfw); - // glfwMakeContextCurrent(window->glfw); return window; } |