create the shaderlog dir in Emu.Init()

This commit is contained in:
eladash 2018-06-21 15:41:11 +03:00 committed by Ivan
parent 8f1c36d79f
commit 3e433ef05c
7 changed files with 3 additions and 11 deletions

View file

@ -369,7 +369,6 @@ void GLFragmentProgram::Compile()
const char* str = shader.c_str();
const int strlen = ::narrow<int>(shader.length());
fs::create_path(fs::get_config_dir() + "/shaderlog");
fs::file(fs::get_config_dir() + "shaderlog/FragmentProgram" + std::to_string(id) + ".glsl", fs::rewrite).write(str);
glShaderSource(id, 1, &str, &strlen);