summaryrefslogtreecommitdiffstats
path: root/RenderScript/src
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-06 16:02:47 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-06 16:02:47 +0000
commita462dc6c35b92a7e04ab7f4f3d19dca863587b61 (patch)
tree477800c2d7aa5e36a5fc7f6d3f79e7b3255d7eaa /RenderScript/src
parentChanges to comply with the updated API (diff)
downloadDiligentTools-a462dc6c35b92a7e04ab7f4f3d19dca863587b61.tar.gz
DiligentTools-a462dc6c35b92a7e04ab7f4f3d19dca863587b61.zip
Upgraded API Version to 240021
Diffstat (limited to 'RenderScript/src')
-rw-r--r--RenderScript/src/ShaderParser.cpp6
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();