mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-16 16:43:27 +00:00
Fix asset loaders for vertex and pixel shader not using correct file name
This commit is contained in:
1 parent
1d798647c3
commit
4a52f3304e
2 files changed
+2
-2
No files matched your search
@@ -29,7 +29,7 @@ bool AssetLoaderPixelShader::LoadFromRaw(const std::string& assetName, ISearchPa
|
||||
std::ostringstream ss;
|
||||
ss << "shader_bin/ps_" << assetName << ".cso";
|
||||
|
||||
const auto file = searchPath->Open(assetName);
|
||||
const auto file = searchPath->Open(ss.str());
|
||||
if (!file.IsOpen())
|
||||
return false;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ bool AssetLoaderVertexShader::LoadFromRaw(const std::string& assetName, ISearchP
|
||||
std::ostringstream ss;
|
||||
ss << "shader_bin/vs_" << assetName << ".cso";
|
||||
|
||||
const auto file = searchPath->Open(assetName);
|
||||
const auto file = searchPath->Open(ss.str());
|
||||
if (!file.IsOpen())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user