Fix: GPU: Profiling for compilation contexts
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user