Skip to content

Commit 9d9d017

Browse files
author
Chris Warren-Smith
committed
NUCLEAR: show window focused at startup
1 parent 5cf27c3 commit 9d9d017

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nuklear/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ nk_context *nkp_create_window(const char *title, int width, int height) {
106106
title, nullptr, nullptr);
107107

108108
glfwMakeContextCurrent(_window);
109+
glfwSwapBuffers(_window);
110+
109111
gladLoadGL((GLADloadfunc) glfwGetProcAddress);
110112
glfwSetErrorCallback(error_callback);
111113
glfwSetWindowSizeCallback(_window, window_size_callback);

0 commit comments

Comments
 (0)