Skip to content

Commit bf32052

Browse files
author
Alexey Panteleev
committed
Merged pull request "Fix inconsistency between timer query behaviour on DX12 and Vulkan": #84
2 parents cb3115e + 019730d commit bf32052

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vulkan/vulkan-queries.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ namespace nvrhi::vulkan
149149
{
150150
TimerQuery* query = checked_cast<TimerQuery*>(_query);
151151

152-
assert(query->started);
152+
if (!query->started)
153+
{
154+
return false;
155+
}
153156

154157
if (query->resolved)
155158
{

0 commit comments

Comments
 (0)