Skip to content

Commit

Permalink
vtfpp: correctly load hdr images with 2 channels
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Dec 4, 2024
1 parent c2a0fad commit 740974d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vtfpp/ImageConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,7 @@ std::vector<std::byte> ImageConversion::convertFileToImageData(std::span<const s

switch (channels) {
case 1: format = ImageFormat::R32F; break;
case 2: format = ImageFormat::RG3232F; break;
case 3: format = ImageFormat::RGB323232F; break;
case 4: format = ImageFormat::RGBA32323232F; break;
default: return {};
Expand Down

0 comments on commit 740974d

Please sign in to comment.