Commit 241ddf7d authored by Johannes Maul's avatar Johannes Maul
Browse files

Update of querypool desctruction into clean up

parent 53a49fdd
......@@ -238,6 +238,7 @@ public:
void cleanUp()
{
vkDestroyQueryPool(device, queryPool, VK_NULL_HANDLE);
vkDestroyPipeline(device,
pipeline,
nullptr);
......@@ -1144,7 +1145,6 @@ public:
tmpTimestampTime = static_cast<double>(timingRes[1] - timingRes[0]) / (1000 * 1000); //convert nano to milli (nano -> mikro -> milli)
vkResetQueryPool(device, queryPool, 0, 2);
vkDestroyQueryPool(device, queryPool, VK_NULL_HANDLE);
//timeStamp end
times.push_back(tmpTimestampTime); //7
......@@ -1474,7 +1474,7 @@ public:
if (!prepared)
return;
#ifdef profile
sw.Start(); //8 (-107)
sw.Start(); //8 (-207)
#endif
draw();
#ifdef profile
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment