refactor: remove unused GLFW includes and commented-out code

This commit is contained in:
2026-07-17 11:23:42 +08:00
parent cb1496fe4b
commit 3d1183e986
5 changed files with 1 additions and 13 deletions

View File

@@ -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();

View File

@@ -10,7 +10,6 @@
#include "Cubed/tools/log.hpp"
#include "Cubed/tools/shader_tools.hpp"
#include <GLFW/glfw3.h>
#include <format>
#include <glm/gtc/type_ptr.hpp>

View File

@@ -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();