Fixed copy and paste in glfw_opengl3 demo

This commit is contained in:
marcinzelent 2021-04-08 16:44:06 +02:00 committed by Komari Spaghetti
parent 6e80e2a646
commit d829ff1ef1

View File

@ -378,7 +378,7 @@ nk_glfw3_init(struct nk_glfw* glfw, GLFWwindow *win, enum nk_glfw_init_state ini
nk_init_default(&glfw->ctx, 0); nk_init_default(&glfw->ctx, 0);
glfw->ctx.clip.copy = nk_glfw3_clipboard_copy; glfw->ctx.clip.copy = nk_glfw3_clipboard_copy;
glfw->ctx.clip.paste = nk_glfw3_clipboard_paste; glfw->ctx.clip.paste = nk_glfw3_clipboard_paste;
glfw->ctx.clip.userdata = nk_handle_ptr(0); glfw->ctx.clip.userdata = nk_handle_ptr(&glfw);
glfw->last_button_click = 0; glfw->last_button_click = 0;
nk_glfw3_device_create(glfw); nk_glfw3_device_create(glfw);