diff --git a/include/Cubed/input/input.hpp b/include/Cubed/input/input.hpp index 51d65a0..ef3e549 100644 --- a/include/Cubed/input/input.hpp +++ b/include/Cubed/input/input.hpp @@ -1,7 +1,5 @@ #pragma once -#include - namespace Cubed { struct MoveState { diff --git a/include/Cubed/texture_manager.hpp b/include/Cubed/texture_manager.hpp index 3c5fbb4..98f7694 100644 --- a/include/Cubed/texture_manager.hpp +++ b/include/Cubed/texture_manager.hpp @@ -50,7 +50,6 @@ public: const Texture* get_pbr_texture() const; const std::vector>& item_textures() const; const Texture* get_skin() const; - // Must call after MapTable::init_map() and glfwMakeContextCurrent(window); void init_texture(); void need_reload(); diff --git a/src/dev_panel.cpp b/src/dev_panel.cpp index 2677996..74e964b 100644 --- a/src/dev_panel.cpp +++ b/src/dev_panel.cpp @@ -59,13 +59,6 @@ void DevPanel::init() { void DevPanel::render() { ASSERT_MSG(m_player, "Player Is Null"); - /* - if (glfwGetWindowAttrib(window, GLFW_ICONIFIED) != 0) - { - ImGui_ImplGlfw_Sleep(10); - continue; - } - */ // Start the Dear ImGui frame ImGui_ImplOpenGL3_NewFrame(); diff --git a/src/render/renderer.cpp b/src/render/renderer.cpp index 4ac99ee..300062a 100644 --- a/src/render/renderer.cpp +++ b/src/render/renderer.cpp @@ -10,7 +10,6 @@ #include "Cubed/tools/log.hpp" #include "Cubed/tools/shader_tools.hpp" -#include #include #include diff --git a/src/window.cpp b/src/window.cpp index bf4e7a6..6755def 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -234,8 +234,7 @@ void Window::set_vsync(bool enable) { void Window::imgui_init() { float main_scale = SDL_GetWindowDisplayScale(m_window); - // float main_scale = - // ImGui_ImplGlfw_GetContentScaleForMonitor(glfwGetPrimaryMonitor()); + Logger::info("Main Scale {}", main_scale); // Setup Dear ImGui context IMGUI_CHECKVERSION();