mips level fix
This commit is contained in:
parent
c84593952a
commit
bd1a6313dd
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ export namespace Crafter {
|
||||||
®ion
|
®ion
|
||||||
);
|
);
|
||||||
|
|
||||||
if(mipLevels > 0) {
|
if(mipLevels > 1) {
|
||||||
TransitionImageLayout(cmd, image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, 0, 1);
|
TransitionImageLayout(cmd, image, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, 0, 1);
|
||||||
|
|
||||||
for (std::uint16_t i = 1; i < mipLevels; ++i) {
|
for (std::uint16_t i = 1; i < mipLevels; ++i) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue