From ea0c5eacdd91a1c17502eb2ba36093ac054572ce Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 6 Apr 2019 09:29:50 -0700 Subject: Updated API version to 240021 --- Tests/TestApp/src/TestDrawCommands.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Tests/TestApp/src/TestDrawCommands.cpp') diff --git a/Tests/TestApp/src/TestDrawCommands.cpp b/Tests/TestApp/src/TestDrawCommands.cpp index 662c24a..809ad73 100644 --- a/Tests/TestApp/src/TestDrawCommands.cpp +++ b/Tests/TestApp/src/TestDrawCommands.cpp @@ -27,11 +27,10 @@ #include "pch.h" #include "TestDrawCommands.h" #include "MapHelper.h" -#include "BasicShaderSourceStreamFactory.h" using namespace Diligent; -void TestDrawCommands::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext, ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent ) +void TestDrawCommands::Init(IRenderDevice *pDevice, IDeviceContext *pDeviceContext, ISwapChain *pSwapChain, float fMinXCoord, float fMinYCoord, float fXExtent, float fYExtent ) { m_pRenderDevice = pDevice; m_pDeviceContext = pDeviceContext; @@ -157,8 +156,9 @@ void TestDrawCommands::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceCont ShaderCreateInfo CreationAttrs; - BasicShaderSourceStreamFactory BasicSSSFactory; - CreationAttrs.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr pShaderSourceFactory; + pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory(nullptr, &pShaderSourceFactory); + CreationAttrs.pShaderSourceStreamFactory = pShaderSourceFactory; CreationAttrs.Desc.TargetProfile = bUseGLSL ? SHADER_PROFILE_GL_4_2 : SHADER_PROFILE_DX_5_0; CreationAttrs.UseCombinedTextureSamplers = true; -- cgit v1.2.3