From 4b7213d37ba172a91504afa4a50f4ef331535455 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 21:11:44 +0200 Subject: refactor: move the GL shader and texture into platform/opengl --- src/platform/opengl/opengl_device.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/platform/opengl/opengl_device.cpp') diff --git a/src/platform/opengl/opengl_device.cpp b/src/platform/opengl/opengl_device.cpp index ea48078..1eb3c7f 100644 --- a/src/platform/opengl/opengl_device.cpp +++ b/src/platform/opengl/opengl_device.cpp @@ -2,8 +2,8 @@ #include "core/log.h" #include "core/hdri_manager.h" -#include "rendering/shader.h" -#include "rendering/texture.h" +#include "shader.h" +#include "texture.h" #include #include @@ -214,6 +214,7 @@ namespace Donut::RHI } auto shutdown() -> void override { + HDRIManager::get().clear_cache(); if (m_imgui) { ImGui_ImplOpenGL3_Shutdown(); ImGui_ImplGlfw_Shutdown(); ImGui::DestroyContext(); m_imgui = false; } if (m_vao) { glDeleteVertexArrays(1, &m_vao); m_vao = 0; } } -- cgit v1.3