hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/platform/opengl/opengl_device.cpp5
-rw-r--r--src/platform/opengl/shader.cpp (renamed from src/rendering/shader.cpp)0
-rw-r--r--src/platform/opengl/shader.h (renamed from src/rendering/shader.h)0
-rw-r--r--src/platform/opengl/texture.cpp (renamed from src/rendering/texture.cpp)0
-rw-r--r--src/platform/opengl/texture.h (renamed from src/rendering/texture.h)0
5 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; }
}
diff --git a/src/rendering/shader.cpp b/src/platform/opengl/shader.cpp
index 34a2857..34a2857 100644
--- a/src/rendering/shader.cpp
+++ b/src/platform/opengl/shader.cpp
diff --git a/src/rendering/shader.h b/src/platform/opengl/shader.h
index c974ec4..c974ec4 100644
--- a/src/rendering/shader.h
+++ b/src/platform/opengl/shader.h
diff --git a/src/rendering/texture.cpp b/src/platform/opengl/texture.cpp
index 07455fe..07455fe 100644
--- a/src/rendering/texture.cpp
+++ b/src/platform/opengl/texture.cpp
diff --git a/src/rendering/texture.h b/src/platform/opengl/texture.h
index e508dc9..e508dc9 100644
--- a/src/rendering/texture.h
+++ b/src/platform/opengl/texture.h