1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-25 02:24:24 +00:00

Examples: Enable vsync by default in example applications (#1213, #1151)

This commit is contained in:
omar 2017-07-23 16:13:17 +08:00
parent 166e8f6261
commit 645875a240
5 changed files with 10 additions and 3 deletions

View file

@ -26,6 +26,7 @@ int main(int, char**)
#endif
GLFWwindow* window = glfwCreateWindow(1280, 720, "ImGui OpenGL3 example", NULL, NULL);
glfwMakeContextCurrent(window);
glfwSwapInterval(1); // Enable vsync
gl3wInit();
// Setup ImGui binding