Utility/STBSaver: Fix failure error message

Former-commit-id: 5985737a6e1690e66c8e1a2c6a4edb2c74aebdb0
This commit is contained in:
Lynix 2016-04-01 18:58:58 +02:00
parent 0a17aacae6
commit d8610d139b
1 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ namespace Nz
if (!stbi_write_hdr_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, reinterpret_cast<const float*>(tempImage.GetConstPixels()))) if (!stbi_write_hdr_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, reinterpret_cast<const float*>(tempImage.GetConstPixels())))
{ {
NazaraError("Failed to write BMP to stream"); NazaraError("Failed to write HDR to stream");
return false; return false;
} }
@ -193,7 +193,7 @@ namespace Nz
if (!stbi_write_png_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, tempImage.GetConstPixels(), 0)) if (!stbi_write_png_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, tempImage.GetConstPixels(), 0))
{ {
NazaraError("Failed to write BMP to stream"); NazaraError("Failed to write PNG to stream");
return false; return false;
} }
@ -213,7 +213,7 @@ namespace Nz
if (!stbi_write_tga_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, tempImage.GetConstPixels())) if (!stbi_write_tga_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, tempImage.GetConstPixels()))
{ {
NazaraError("Failed to write BMP to stream"); NazaraError("Failed to write TGA to stream");
return false; return false;
} }