mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +00:00
Save path is not persistent.
This commit is contained in:
parent
9da3364c77
commit
bc886e4287
@ -5,6 +5,7 @@
|
|||||||
#include "imgui_impl_opengl3.h"
|
#include "imgui_impl_opengl3.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string>
|
||||||
#include <GL/gl3w.h>
|
#include <GL/gl3w.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -103,7 +104,8 @@ int main( int argc, char** argv )
|
|||||||
IMGUI_CHECKVERSION();
|
IMGUI_CHECKVERSION();
|
||||||
ImGui::CreateContext();
|
ImGui::CreateContext();
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
io.IniFilename = tracy::GetSavePath( "imgui.ini" );
|
std::string iniFileName = tracy::GetSavePath( "imgui.ini" );
|
||||||
|
io.IniFilename = iniFileName.c_str();
|
||||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||||
|
|
||||||
ImGui_ImplGlfw_InitForOpenGL( window, true );
|
ImGui_ImplGlfw_InitForOpenGL( window, true );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user