mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Fix asset loaders for vertex and pixel shader not using correct file name
This commit is contained in:
parent
1d798647c3
commit
4a52f3304e
@ -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;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user