diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 21:11:44 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 21:11:44 +0200 |
| commit | 4b7213d37ba172a91504afa4a50f4ef331535455 (patch) | |
| tree | d0943296e37b9562ec9e42c05d6e6c06532b4ce5 /src/platform/opengl/opengl_device.cpp | |
| parent | 441a29433023fb2c687be786107f764ad4ca9cb4 (diff) | |
refactor: move the GL shader and texture into platform/opengl
Diffstat (limited to 'src/platform/opengl/opengl_device.cpp')
| -rw-r--r-- | src/platform/opengl/opengl_device.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <glad/glad.h> #include <GLFW/glfw3.h> @@ -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; } } |
