Skip to content

Commit 740974d

Browse files
vtfpp: correctly load hdr images with 2 channels
1 parent c2a0fad commit 740974d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vtfpp/ImageConversion.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ std::vector<std::byte> ImageConversion::convertFileToImageData(std::span<const s
12641264

12651265
switch (channels) {
12661266
case 1: format = ImageFormat::R32F; break;
1267+
case 2: format = ImageFormat::RG3232F; break;
12671268
case 3: format = ImageFormat::RGB323232F; break;
12681269
case 4: format = ImageFormat::RGBA32323232F; break;
12691270
default: return {};

0 commit comments

Comments
 (0)