From d8610d139b83a96698b6dab01a6dc1316c53996d Mon Sep 17 00:00:00 2001 From: Lynix Date: Fri, 1 Apr 2016 18:58:58 +0200 Subject: [PATCH] Utility/STBSaver: Fix failure error message Former-commit-id: 5985737a6e1690e66c8e1a2c6a4edb2c74aebdb0 --- src/Nazara/Utility/Formats/STBSaver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Nazara/Utility/Formats/STBSaver.cpp b/src/Nazara/Utility/Formats/STBSaver.cpp index e68210d93..4166de86f 100644 --- a/src/Nazara/Utility/Formats/STBSaver.cpp +++ b/src/Nazara/Utility/Formats/STBSaver.cpp @@ -173,7 +173,7 @@ namespace Nz if (!stbi_write_hdr_to_func(&WriteToStream, &stream, tempImage.GetWidth(), tempImage.GetHeight(), componentCount, reinterpret_cast(tempImage.GetConstPixels()))) { - NazaraError("Failed to write BMP to stream"); + NazaraError("Failed to write HDR to stream"); return false; } @@ -193,7 +193,7 @@ namespace Nz 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; } @@ -213,7 +213,7 @@ namespace Nz 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; }