Commit ec11c201 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: fix unix program imnodes header

parent 24332ae3
Pipeline #34687 passed with stage
in 1 minute and 17 seconds
......@@ -3,12 +3,11 @@
// http://www.boost.org/LICENSE_1_0.txt)
#include "application.hpp"
#include "imnodes.hpp"
#include "imnodes.h"
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include "imnodes.hpp"
#include <cstdio>
#include <cstring>
......@@ -118,11 +117,11 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
// Setup Platform/Renderer bindings
ImGui_ImplGlfw_InitForOpenGL(window, true);
ImGui_ImplOpenGL3_Init(glsl_version);
imnodes::CreateContext();
ImNodes::CreateContext();
irt::application app;
if (!app.init()) {
imnodes::DestroyContext();
ImNodes::DestroyContext();
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
......@@ -202,7 +201,7 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
// Cleanup
app.shutdown();
imnodes::DestroyContext();
ImNodes::DestroyContext();
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
......
......@@ -10,7 +10,7 @@
// replicated in your app or by adding it to your imconfig.h file.
#include "application.hpp"
#include "ImNodes.h"
#include "imnodes.h"
#include "imgui.h"
#include "imgui_impl_dx12.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment