From 7f017fa3ef41e372fca5996b3e20f75862e40ffa Mon Sep 17 00:00:00 2001 From: bitplane Date: Wed, 11 Jan 2012 16:12:30 +0000 Subject: [PATCH] Another warning fix submitted by curaga (3472442) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4036 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CGUIFont.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Irrlicht/CGUIFont.cpp b/source/Irrlicht/CGUIFont.cpp index 616951cd..b7fdfd2c 100644 --- a/source/Irrlicht/CGUIFont.cpp +++ b/source/Irrlicht/CGUIFont.cpp @@ -265,6 +265,9 @@ bool CGUIFont::loadTexture(video::IImage* image, const io::path& name) image->copyTo(tmpImage); deleteTmpImage=true; break; + default: + os::Printer::log("Unknown texture format provided for CGUIFont::loadTexture", ELL_ERROR); + return false; } readPositions(tmpImage, lowerRightPositions);