Code cleanup

Fixes some C++2X deprecation warnings
This commit is contained in:
Sascha Willems 2025-07-05 16:15:43 +02:00
parent 878dbc2987
commit f735a89518
2 changed files with 5 additions and 6 deletions

View file

@ -334,8 +334,7 @@ void VulkanExampleBase::renderLoop()
if (wl_display_dispatch_pending(display) == -1)
return;
#endif
benchmark.run([=] { render(); }, vulkanDevice->properties);
benchmark.run([=, this] { render(); }, vulkanDevice->properties);
vkDeviceWaitIdle(device);
if (!benchmark.filename.empty()) {
benchmark.saveResults();