Fix: GPU: Profiling for compilation contexts

This commit is contained in:
Miguel Pozo
2025-05-22 15:55:27 +02:00
parent 9ac3e44ce6
commit 7654be9e88

View File

@@ -88,7 +88,11 @@ GLContext::GLContext(void *ghost_window, GLSharedOrphanLists &shared_orphan_list
GLContext::~GLContext()
{
process_frame_timings();
if (G.profile_gpu) {
/* Ensure query results are available. */
finish();
process_frame_timings();
}
free_resources();
BLI_assert(orphaned_framebuffers_.is_empty());
BLI_assert(orphaned_vertarrays_.is_empty());