diff options
Diffstat (limited to 'src/vulkan/overlay-layer/overlay.cpp')
-rw-r--r-- | src/vulkan/overlay-layer/overlay.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/overlay-layer/overlay.cpp b/src/vulkan/overlay-layer/overlay.cpp index a8cba732675..c4344f96aa4 100644 --- a/src/vulkan/overlay-layer/overlay.cpp +++ b/src/vulkan/overlay-layer/overlay.cpp @@ -1843,6 +1843,8 @@ static VkResult overlay_BeginCommandBuffer( struct command_buffer_data *cmd_buffer_data = FIND_CMD_BUFFER_DATA(commandBuffer); struct device_data *device_data = cmd_buffer_data->device; + memset(&cmd_buffer_data->stats, 0, sizeof(cmd_buffer_data->stats)); + /* We don't record any query in secondary command buffers, just make sure * we have the right inheritance. */ |