From 12df6e84f99525248633b5296034e042e5067435 Mon Sep 17 00:00:00 2001 From: Anselme Date: Thu, 10 May 2018 15:22:03 +0200 Subject: [PATCH] Fixed imgui crash --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 22e3ef3..2486ff5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include #include #include "input.h" +#include using namespace std; @@ -29,8 +30,8 @@ int main() { cerr << "Hello World!"<< endl; sf::Window* window= new sf::Window(sf::VideoMode(400,200),"testSparrowInput"); + ImGui::CreateContext(); Input myInput(window); - Context context = Context("test",TestKeysMap::getTestContext()); myInput.setKeysMap(TestKeysMap()); myInput.addContext(context);