diff --git a/app/src/main/cpp/skyline/gpu/texture/layout.cpp b/app/src/main/cpp/skyline/gpu/texture/layout.cpp index 1988046a..1d00c354 100644 --- a/app/src/main/cpp/skyline/gpu/texture/layout.cpp +++ b/app/src/main/cpp/skyline/gpu/texture/layout.cpp @@ -64,7 +64,7 @@ namespace skyline::gpu::texture { for (size_t i{}; i < levelCount; i++) { size_t linearSize{util::DivideCeil(dimensions.width, formatBlockWidth) * formatBpb * util::DivideCeil(dimensions.height, formatBlockHeight) * dimensions.depth}; - size_t targetLinearSize{targetFormatBpb == 0 ? linearSize : util::DivideCeil(dimensions.width, targetFormatBlockWidth) * formatBpb * util::DivideCeil(dimensions.height, targetFormatBlockHeight) * dimensions.depth}; + size_t targetLinearSize{targetFormatBpb == 0 ? linearSize : util::DivideCeil(dimensions.width, targetFormatBlockWidth) * targetFormatBpb * util::DivideCeil(dimensions.height, targetFormatBlockHeight) * dimensions.depth}; mipLevels.emplace_back( dimensions,