mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-12 21:20:13 +02:00
Fixed TGA 2.0 metadata writing for small images
This commit is contained in:
parent
61bdcf751c
commit
5624f948af
@ -1881,7 +1881,7 @@ HRESULT DirectX::SaveToTGAMemory(
|
|||||||
_Use_decl_annotations_
|
_Use_decl_annotations_
|
||||||
HRESULT DirectX::SaveToTGAFile(
|
HRESULT DirectX::SaveToTGAFile(
|
||||||
const Image& image,
|
const Image& image,
|
||||||
TGA_FLAGS /*flags*/,
|
TGA_FLAGS flags,
|
||||||
const wchar_t* szFile,
|
const wchar_t* szFile,
|
||||||
const TexMetadata* metadata) noexcept
|
const TexMetadata* metadata) noexcept
|
||||||
{
|
{
|
||||||
@ -1922,7 +1922,7 @@ HRESULT DirectX::SaveToTGAFile(
|
|||||||
// For small images, it is better to create an in-memory file and write it out
|
// For small images, it is better to create an in-memory file and write it out
|
||||||
Blob blob;
|
Blob blob;
|
||||||
|
|
||||||
hr = SaveToTGAMemory(image, blob);
|
hr = SaveToTGAMemory(image, flags, blob, metadata);
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user