From f7fb7e10fb79423358088c4417bb55f39f904386 Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 16 May 2013 22:22:23 +0200 Subject: [PATCH] Improved unsupported texture format error Former-commit-id: 63c12416baadd82f6b6f3fa9442034a9a18d0704 --- src/Nazara/Renderer/Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Renderer/Texture.cpp b/src/Nazara/Renderer/Texture.cpp index 0a4abf459..95731b385 100644 --- a/src/Nazara/Renderer/Texture.cpp +++ b/src/Nazara/Renderer/Texture.cpp @@ -32,7 +32,7 @@ namespace NzOpenGL::Format openGLFormat; if (!NzOpenGL::TranslateFormat(impl->format, &openGLFormat, NzOpenGL::FormatType_Texture)) { - NazaraError("Format not supported by OpenGL"); + NazaraError("Format " + NzPixelFormat::ToString(impl->format) + " not supported by OpenGL"); return false; } @@ -562,7 +562,7 @@ bool NzTexture::LoadFromImage(const NzImage& image, bool generateMipmaps) if (!IsFormatSupported(format)) { nzPixelFormat newFormat = (NzPixelFormat::HasAlpha(format)) ? nzPixelFormat_BGRA8 : nzPixelFormat_BGR8; - NazaraWarning("Format not supported, trying to convert it to " + NzPixelFormat::ToString(newFormat) + "..."); + NazaraWarning("Format " + NzPixelFormat::ToString(format) + " not supported, trying to convert it to " + NzPixelFormat::ToString(newFormat) + "..."); if (NzPixelFormat::IsConversionSupported(format, newFormat)) {