Skip to content
Snippets Groups Projects
Verified Commit fa5cbde8 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#55] Blit but safe

parent 81f366ad
No related branches found
No related tags found
1 merge request!67Resolve "Mipmapping"
Pipeline #25847 passed
......@@ -468,7 +468,7 @@ namespace vkcv {
uint32_t srcDepth = image.m_depth;
auto half = [](uint32_t in) {
return std::max(in / 2, (uint32_t)1);
return std::max<uint32_t>(in / 2, 1);
};
uint32_t dstWidth = half(image.m_width);
......@@ -498,6 +498,8 @@ namespace vkcv {
dstWidth = half(dstWidth);
dstHeight = half(dstHeight);
dstDepth = half(dstDepth);
recordImageMemoryBarrier(handle, cmdBuffer);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment