diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-06 16:02:47 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-06 16:02:47 +0000 |
| commit | a462dc6c35b92a7e04ab7f4f3d19dca863587b61 (patch) | |
| tree | 477800c2d7aa5e36a5fc7f6d3f79e7b3255d7eaa /RenderScript | |
| parent | Changes to comply with the updated API (diff) | |
| download | DiligentTools-a462dc6c35b92a7e04ab7f4f3d19dca863587b61.tar.gz DiligentTools-a462dc6c35b92a7e04ab7f4f3d19dca863587b61.zip | |
Upgraded API Version to 240021
Diffstat (limited to 'RenderScript')
| -rw-r--r-- | RenderScript/src/ShaderParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/RenderScript/src/ShaderParser.cpp b/RenderScript/src/ShaderParser.cpp index 3ca4981..9f3b1e8 100644 --- a/RenderScript/src/ShaderParser.cpp +++ b/RenderScript/src/ShaderParser.cpp @@ -23,7 +23,6 @@ #include "pch.h" #include "ShaderParser.h" -#include "BasicShaderSourceStreamFactory.h" namespace Diligent { @@ -96,8 +95,9 @@ namespace Diligent ShaderCreateInfoWrapper ShaderCreationAttrs; ParseLuaTable( L, -1, &ShaderCreationAttrs, m_Bindings ); - BasicShaderSourceStreamFactory BasicSSSFactory(ShaderCreationAttrs.SearchDirectories); - ShaderCreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory; + m_pRenderDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory(ShaderCreationAttrs.SearchDirectories, &pShaderSourceFactory); + ShaderCreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory; CHECK_LUA_STACK_HEIGHT(); |
