Skip to content

Commit ac56a7f

Browse files
vtfpp: add missing returns
1 parent 9be8dae commit ac56a7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vtfpp/ImageConversion.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ std::vector<std::byte> ImageConversion::convertFileToImageData(std::span<const s
13231323
inPixels.begin(), inPixels.end(), outPixels.begin(), [](uint16_t pixel) -> ImagePixel::RGBA16161616 {
13241324
return {pixel, 0, 0, 0xffff};
13251325
});
1326+
return out;
13261327
}
13271328
case 2: {
13281329
struct RG1616 {
@@ -1337,6 +1338,7 @@ std::vector<std::byte> ImageConversion::convertFileToImageData(std::span<const s
13371338
inPixels.begin(), inPixels.end(), outPixels.begin(), [](RG1616 pixel) -> ImagePixel::RGBA16161616 {
13381339
return {pixel.r, pixel.g, 0, 0xffff};
13391340
});
1341+
return out;
13401342
}
13411343
case 3: {
13421344
struct RGB161616 {
@@ -1352,6 +1354,7 @@ std::vector<std::byte> ImageConversion::convertFileToImageData(std::span<const s
13521354
inPixels.begin(), inPixels.end(), outPixels.begin(), [](RGB161616 pixel) -> ImagePixel::RGBA16161616 {
13531355
return {pixel.r, pixel.g, pixel.b, 0xffff};
13541356
});
1357+
return out;
13551358
}
13561359
default:
13571360
return {};

0 commit comments

Comments
 (0)