From 31de9c085d242b84ff89dab6e7f9aa5f2e9cc5da Mon Sep 17 00:00:00 2001 From: Alexander Gauggel <agauggel@uni-koblenz.de> Date: Tue, 3 Aug 2021 18:15:52 +0200 Subject: [PATCH] [#106] Attempt to fix mac compile error --- projects/indirect_dispatch/src/App.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/indirect_dispatch/src/App.cpp b/projects/indirect_dispatch/src/App.cpp index 2654931f..e53c86ef 100644 --- a/projects/indirect_dispatch/src/App.cpp +++ b/projects/indirect_dispatch/src/App.cpp @@ -136,10 +136,9 @@ void App::run() { m_core.prepareImageForStorage (cmdStream, swapchainInput); uint32_t gammaCorrectionDispatch[3] = { - (m_windowWidth + 7) / 8, - (m_windowHeight + 7) / 8, - 1 - }; + static_cast<uint32_t>((m_windowWidth + 7) / 8), + static_cast<uint32_t>((m_windowHeight + 7) / 8), + static_cast<uint32_t>(1) }; m_core.recordComputeDispatchToCmdStream( cmdStream, -- GitLab