From dca50c33a6524f2b1acd0b2e1f9d9b81c463ed7a Mon Sep 17 00:00:00 2001 From: Andrew Woloszyn Date: Tue, 24 Apr 2018 10:06:17 -0400 Subject: [PATCH] On starting a queue-submit, clear the last draw info. During this submission, we have no valid draw info at the start of the submission, don't try and use it. --- gapis/api/vulkan/vulkan.api | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gapis/api/vulkan/vulkan.api b/gapis/api/vulkan/vulkan.api index fc8329f0dd..d8655419b0 100644 --- a/gapis/api/vulkan/vulkan.api +++ b/gapis/api/vulkan/vulkan.api @@ -3953,6 +3953,9 @@ cmd VkResult vkQueueSubmit( LastSubmission = SUBMIT submitInfo := pSubmits[0:submitCount] LastBoundQueue = Queues[queue] + if (LastBoundQueue.VulkanHandle in LastDrawInfos) { + LastDrawInfos[LastBoundQueue.VulkanHandle] = new!DrawInfo() + } enterSubcontext() for i in (0 .. submitCount) {