Fix asset loaders for vertex and pixel shader not using correct file name

This commit is contained in:
Jan 2022-03-30 19:25:41 +02:00
parent 1d798647c3
commit 4a52f3304e
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ bool AssetLoaderPixelShader::LoadFromRaw(const std::string& assetName, ISearchPa
std::ostringstream ss; std::ostringstream ss;
ss << "shader_bin/ps_" << assetName << ".cso"; ss << "shader_bin/ps_" << assetName << ".cso";
const auto file = searchPath->Open(assetName); const auto file = searchPath->Open(ss.str());
if (!file.IsOpen()) if (!file.IsOpen())
return false; return false;

View File

@ -29,7 +29,7 @@ bool AssetLoaderVertexShader::LoadFromRaw(const std::string& assetName, ISearchP
std::ostringstream ss; std::ostringstream ss;
ss << "shader_bin/vs_" << assetName << ".cso"; ss << "shader_bin/vs_" << assetName << ".cso";
const auto file = searchPath->Open(assetName); const auto file = searchPath->Open(ss.str());
if (!file.IsOpen()) if (!file.IsOpen())
return false; return false;