summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestShaderVarAccess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/TestApp/src/TestShaderVarAccess.cpp')
-rw-r--r--Tests/TestApp/src/TestShaderVarAccess.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/TestApp/src/TestShaderVarAccess.cpp b/Tests/TestApp/src/TestShaderVarAccess.cpp
index 4dd46b3..98714da 100644
--- a/Tests/TestApp/src/TestShaderVarAccess.cpp
+++ b/Tests/TestApp/src/TestShaderVarAccess.cpp
@@ -26,7 +26,6 @@
#include "pch.h"
#include "TestShaderVarAccess.h"
-#include "BasicShaderSourceStreamFactory.h"
#include "GraphicsAccessories.h"
#include "../../../DiligentCore/Graphics/GraphicsEngineD3DBase/interface/ShaderD3D.h"
@@ -64,8 +63,9 @@ TestShaderVarAccess::TestShaderVarAccess( IRenderDevice *pDevice, IDeviceContext
return;
ShaderCreateInfo CreationAttrs;
- BasicShaderSourceStreamFactory BasicSSSFactory("Shaders");
- CreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory;
+ RefCntAutoPtr<IShaderSourceInputStreamFactory> pShaderSourceFactory;
+ pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory("Shaders", &pShaderSourceFactory);
+ CreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory;
CreationAttrs.EntryPoint = "main";
CreationAttrs.UseCombinedTextureSamplers = true;