Removes a shit ton of random debug logging

This commit is contained in:
2024-10-15 08:14:22 -04:00
parent 7a85b0eb5a
commit 603732232c
33 changed files with 104 additions and 103 deletions

View File

@@ -6,12 +6,12 @@
#include <cmath>
#include "engine/assets/image/ImageView.hpp"
#include "engine/assets/stores.hpp"
#include "engine/assets/texture/Texture.hpp"
#include "engine/debug/logging/logging.hpp"
#include "engine/filesystem/scanner/FileScanner.hpp"
#include "engine/filesystem/types.hpp"
#include "engine/assets/image/ImageView.hpp"
#include "engine/assets/texture/Texture.hpp"
#include "safe_include.hpp"
namespace fgl::engine::filesystem
@@ -41,6 +41,14 @@ namespace fgl::engine::filesystem
current = std::make_unique< DirInfo >( test_path );
}
void destroyFileGUI()
{
folder_texture.reset();
file_texture.reset();
up_texture.reset();
file_textures.clear();
}
void FileBrowser::drawGui( [[maybe_unused]] FrameInfo& info )
{
ZoneScoped;

View File

@@ -26,4 +26,6 @@ namespace fgl::engine::filesystem
static void drawFolder( const DirInfo& data );
};
void destroyFileGUI();
} // namespace fgl::engine::filesystem

View File

@@ -235,6 +235,7 @@ namespace fgl::engine::gui
void cleanupImGui()
{
ZoneScoped;
filesystem::destroyFileGUI();
ImGui_ImplVulkan_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui::DestroyContext();

View File

@@ -22,7 +22,7 @@ int main()
engine_ctx.TEMPhookGuiRender( gui::drawMainGUI );
// Now we need to create the camera for the editor.
CameraManager& camera_manager { CameraManager::getInstance() };
CameraManager& camera_manager { engine_ctx.cameraManager() };
auto& editor_camera { camera_manager.getPrimary() };