X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FText.cpp;h=0a31c3ea6f9a165056820f72be43fada4583c620;hb=e08372a2095837a0b951ccb68c3499ef67c1a827;hp=d3160480a04728e2f3e3d04acfafead2d4599550;hpb=34ce0cdd42f673a04aa29ae148d2206420dfd813;p=lugaru.git diff --git a/Source/Text.cpp b/Source/Text.cpp index d316048..0a31c3e 100644 --- a/Source/Text.cpp +++ b/Source/Text.cpp @@ -1,5 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games +Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -21,13 +22,13 @@ along with Lugaru. If not, see . #include "Text.h" #include "Game.h" -void Text::LoadFontTexture(const char *fileName) +void Text::LoadFontTexture(const std::string& fileName) { LOGFUNC; LOG(std::string("Loading font texture...") + fileName); - FontTexture.load(fileName, false, false); + FontTexture.load(fileName, false); if (base) { glDeleteLists(base, 512); base = 0;