DISTS EMSCRIPTEN: set correct datadir (fixed issue with shader loading)

This commit is contained in:
Christian Kündig 2021-06-07 14:40:39 +02:00 committed by Eugene Sandulenko
parent 93e1c779b6
commit 501c7ba7aa
2 changed files with 1 additions and 2 deletions

View file

@ -35,7 +35,6 @@ static const GLchar *readFile(const Common::String &filename) {
#if defined(EMSCRIPTEN)
// Since we need to bundle all files into data files on Emscripten, we keep all shaders in a different folder
SearchMan.addDirectory("ALL_SHADERS", "/", 0, 2);
#endif
// Allow load shaders from source code directory without install them
// It's used for development purpose
@ -52,7 +51,6 @@ static const GLchar *readFile(const Common::String &filename) {
SearchMan.remove("STARK_SHADERS");
SearchMan.remove("WINTERMUTE_SHADERS");
#if defined(EMSCRIPTEN)
SearchMan.remove("ALL_SHADERS");
#endif
const int32 size = file.size();