obs/gs/effect: Fix unicode support

Related: #359
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-11-28 23:32:09 +01:00
parent cc1b9c1559
commit aacb1d41bc

View file

@ -58,7 +58,7 @@ gs::effect::effect(const std::string& code, const std::string& name)
reset(effect, [](gs_effect_t* ptr) { gs_effect_destroy(ptr); }); reset(effect, [](gs_effect_t* ptr) { gs_effect_destroy(ptr); });
} }
gs::effect::effect(std::filesystem::path file) : effect(load_file_as_code(file), file.string()) {} gs::effect::effect(std::filesystem::path file) : effect(load_file_as_code(file), file.u8string()) {}
gs::effect::~effect() gs::effect::~effect()
{ {