summaryrefslogtreecommitdiffstats
path: root/RenderScript/src
diff options
context:
space:
mode:
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();