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 --- unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unityplugin/GhostCubeScene/src') diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index abd3a26..4aad6f5 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -25,7 +25,6 @@ #include "PlatformDefinitions.h" #include "BasicMath.h" #include -#include "BasicShaderSourceStreamFactory.h" #include "GraphicsUtilities.h" #include "MapHelper.h" #include "CommonlyUsedStates.h" @@ -94,8 +93,9 @@ void GhostCubeScene::OnGraphicsInitialized() PSODesc.GraphicsPipeline.DepthStencilDesc.DepthFunc = UseReverseZ ? COMPARISON_FUNC_GREATER_EQUAL : COMPARISON_FUNC_LESS_EQUAL; ShaderCreateInfo ShaderCI; - BasicShaderSourceStreamFactory BasicSSSFactory("shaders"); - ShaderCI.pShaderSourceStreamFactory = &BasicSSSFactory; + RefCntAutoPtr pShaderSourceFactory; + pDevice->GetEngineFactory()->CreateDefaultShaderSourceStreamFactory("shaders", &pShaderSourceFactory); + ShaderCI.pShaderSourceStreamFactory = pShaderSourceFactory; ShaderCI.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL; ShaderCI.UseCombinedTextureSamplers = true; -- cgit v1.2.3