summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libandroid.c2
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;
}