Fix of 1.42.0-Alpha1 won't open from self contained folder #1500

Added some missing UTF8 to wxString path explicit conversions.
This commit is contained in:
bubnikv 2019-01-03 12:32:13 +01:00
parent d426895580
commit 0d7e53badb
3 changed files with 6 additions and 6 deletions

View file

@ -36,7 +36,7 @@ bool GLTexture::load_from_file(const std::string& filename, bool generate_mipmap
// Load a PNG with an alpha channel.
wxImage image;
if (!image.LoadFile(filename, wxBITMAP_TYPE_PNG))
if (!image.LoadFile(wxString::FromUTF8(filename), wxBITMAP_TYPE_PNG))
{
reset();
return false;