diff --git a/examples/opengl3_example/main.cpp b/examples/opengl3_example/main.cpp index c8fe320..9f86ebe 100644 --- a/examples/opengl3_example/main.cpp +++ b/examples/opengl3_example/main.cpp @@ -152,11 +152,9 @@ ImGui::GetIO().AddInputCharacter((unsigned short)c); } -// OpenGL code based on http://open.gl tutorials void InitGL() { glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) exit(1); @@ -164,7 +162,7 @@ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); - window = glfwCreateWindow(1280, 720, "ImGui OpenGL example", NULL, NULL); + window = glfwCreateWindow(1280, 720, "ImGui OpenGL3 example", NULL, NULL); glfwMakeContextCurrent(window); glfwSetKeyCallback(window, glfw_key_callback); glfwSetMouseButtonCallback(window, glfw_mouse_button_callback); diff --git a/examples/opengl3_example/main.cpp b/examples/opengl3_example/main.cpp index c8fe320..9f86ebe 100644 --- a/examples/opengl3_example/main.cpp +++ b/examples/opengl3_example/main.cpp @@ -152,11 +152,9 @@ ImGui::GetIO().AddInputCharacter((unsigned short)c); } -// OpenGL code based on http://open.gl tutorials void InitGL() { glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) exit(1); @@ -164,7 +162,7 @@ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); - window = glfwCreateWindow(1280, 720, "ImGui OpenGL example", NULL, NULL); + window = glfwCreateWindow(1280, 720, "ImGui OpenGL3 example", NULL, NULL); glfwMakeContextCurrent(window); glfwSetKeyCallback(window, glfw_key_callback); glfwSetMouseButtonCallback(window, glfw_mouse_button_callback); diff --git a/examples/opengl_example/main.cpp b/examples/opengl_example/main.cpp index cc3fae3..018616f 100644 --- a/examples/opengl_example/main.cpp +++ b/examples/opengl_example/main.cpp @@ -130,15 +130,13 @@ ImGui::GetIO().AddInputCharacter((unsigned short)c); } -// OpenGL code based on http://open.gl tutorials void InitGL() { glfwSetErrorCallback(glfw_error_callback); - if (!glfwInit()) exit(1); - window = glfwCreateWindow(1280, 720, "ImGui OpenGL example", NULL, NULL); + window = glfwCreateWindow(1280, 720, "ImGui OpenGL2 example", NULL, NULL); glfwMakeContextCurrent(window); glfwSetKeyCallback(window, glfw_key_callback); glfwSetMouseButtonCallback(window, glfw_mouse_button_callback);