From 4b261bd8f6e22c64a598838df89a58da13a63a84 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 4 Oct 2021 15:40:56 +0100 Subject: [PATCH] Fix problems with GL counter fetch around multi-draw draws --- renderdoc/driver/gl/gl_counters.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/gl/gl_counters.cpp b/renderdoc/driver/gl/gl_counters.cpp index cf6fec26f..fb56e7071 100644 --- a/renderdoc/driver/gl/gl_counters.cpp +++ b/renderdoc/driver/gl/gl_counters.cpp @@ -259,9 +259,10 @@ void GLReplay::FillTimers(GLCounterContext &ctx, const ActionDescription &action for(size_t i = 0; i < actionnode.children.size(); i++) { const ActionDescription &a = actionnode.children[i]; - FillTimers(ctx, actionnode.children[i], counters); + FillTimers(ctx, a, counters); - if(a.events.empty()) + // for marker regions and multi-actions, don't fetch counters for them, only their children + if(!a.children.empty()) continue; GPUQueries *queries = NULL;