Skip to content
Snippets Groups Projects
Commit 80059ef8 authored by Alexander Gauggel's avatar Alexander Gauggel
Browse files

[#82] Crash fix

parent 2ab4562a
No related branches found
No related tags found
1 merge request!70Resolve "Voxel cone tracing"
...@@ -114,7 +114,7 @@ void BloomAndFlares::execDownsamplePipe(const vkcv::CommandStreamHandle &cmdStre ...@@ -114,7 +114,7 @@ void BloomAndFlares::execDownsamplePipe(const vkcv::CommandStreamHandle &cmdStre
// downsample dispatches of blur buffer's mip maps // downsample dispatches of blur buffer's mip maps
float mipDispatchCountX = dispatchCountX; float mipDispatchCountX = dispatchCountX;
float mipDispatchCountY = dispatchCountY; float mipDispatchCountY = dispatchCountY;
for(uint32_t mipLevel = 1; mipLevel < m_DownsampleDescSets.size(); mipLevel++) for(uint32_t mipLevel = 1; mipLevel < std::min((uint32_t)m_DownsampleDescSets.size(), m_Blur.getMipCount()); mipLevel++)
{ {
// mip descriptor writes // mip descriptor writes
vkcv::DescriptorWrites mipDescriptorWrites; vkcv::DescriptorWrites mipDescriptorWrites;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment