diff --git a/src/vtfpp/ImageConversion.cpp b/src/vtfpp/ImageConversion.cpp index b12908f74..922191d65 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 {};