Skip to content

Commit

Permalink
- fix vkGetQueryPoolResults: parameter dataSize must be greater than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed May 3, 2019
1 parent 80c09c5 commit a651576
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendering/vulkan/system/vk_framebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,8 @@ void VulkanFrameBuffer::PopGroup()
void VulkanFrameBuffer::UpdateGpuStats()
{
uint64_t timestamps[MaxTimestampQueries];
mTimestampQueryPool->getResults(0, mNextTimestampQuery, sizeof(uint64_t) * mNextTimestampQuery, timestamps, sizeof(uint64_t), VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT);
if (mNextTimestampQuery > 0)
mTimestampQueryPool->getResults(0, mNextTimestampQuery, sizeof(uint64_t) * mNextTimestampQuery, timestamps, sizeof(uint64_t), VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT);

double timestampPeriod = device->PhysicalDevice.Properties.limits.timestampPeriod;

Expand Down

0 comments on commit a651576

Please sign in to comment.