From ac56a7f366574f66071444a68b104b7e04725cae Mon Sep 17 00:00:00 2001 From: craftablescience Date: Wed, 4 Dec 2024 05:51:35 -0500 Subject: [PATCH] vtfpp: add missing returns --- src/vtfpp/ImageConversion.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vtfpp/ImageConversion.cpp b/src/vtfpp/ImageConversion.cpp index 91a5df77e..447a25e03 100644 --- a/src/vtfpp/ImageConversion.cpp +++ b/src/vtfpp/ImageConversion.cpp @@ -1323,6 +1323,7 @@ std::vector ImageConversion::convertFileToImageData(std::span ImagePixel::RGBA16161616 { return {pixel, 0, 0, 0xffff}; }); + return out; } case 2: { struct RG1616 { @@ -1337,6 +1338,7 @@ std::vector ImageConversion::convertFileToImageData(std::span ImagePixel::RGBA16161616 { return {pixel.r, pixel.g, 0, 0xffff}; }); + return out; } case 3: { struct RGB161616 { @@ -1352,6 +1354,7 @@ std::vector ImageConversion::convertFileToImageData(std::span ImagePixel::RGBA16161616 { return {pixel.r, pixel.g, pixel.b, 0xffff}; }); + return out; } default: return {};