Skip to content

Commit

Permalink
bgr tga tex
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Nov 30, 2023
1 parent 47d9006 commit d802ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion header/TextureClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int TextureClient::LoadTexture(TextureFileStruct* file_in_memory, uModTexturePtr
DirectX::ScratchImage image;
HRESULT hr = 0;
if (file_in_memory->ext == ".tga") {
hr = DirectX::LoadFromTGAMemory(file_in_memory->data.data(), file_in_memory->data.size(), DirectX::TGA_FLAGS_NONE, nullptr, image);
hr = DirectX::LoadFromTGAMemory(file_in_memory->data.data(), file_in_memory->data.size(), DirectX::TGA_FLAGS_BGR, nullptr, image);
}
else {
hr = DirectX::LoadFromHDRMemory(file_in_memory->data.data(), file_in_memory->data.size(), nullptr, image);
Expand Down

0 comments on commit d802ee3

Please sign in to comment.