From 95ebb00044fa4555d696fb00e6f96dc5570def7d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 15 Dec 2017 11:15:22 -0800 Subject: Minor update to CMake; fixed compiler warning; updated DiligentCore submodule --- unityplugin/GhostCubeScene/CMakeLists.txt | 2 ++ unityplugin/GhostCubeScene/src/GhostCubeScene.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'unityplugin') diff --git a/unityplugin/GhostCubeScene/CMakeLists.txt b/unityplugin/GhostCubeScene/CMakeLists.txt index 2ce1adf..ebcc3c1 100644 --- a/unityplugin/GhostCubeScene/CMakeLists.txt +++ b/unityplugin/GhostCubeScene/CMakeLists.txt @@ -41,6 +41,8 @@ if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS) elseif(PLATFORM_UNIVERSAL_WINDOWS) + # We cannot use genreator expression to add a file because the file name + # must not depend on the configuration set(PLUGIN_REL_DLL ${CMAKE_CURRENT_BINARY_DIR}/GhostCubePlugin_${ARCH}r.dll) set(PLUGIN_DBG_DLL ${CMAKE_CURRENT_BINARY_DIR}/GhostCubePlugin_${ARCH}d.dll) diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp index dd3483f..5d56393 100644 --- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp +++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp @@ -82,7 +82,7 @@ void GhostCubeScene::OnGraphicsInitialized() TexDesc.ClearValue.DepthStencil.Depth = 0.f; pDevice->CreateTexture(TexDesc, TextureData(), &m_pDepthBuffer); - auto deviceType = pDevice->GetDeviceCaps().DevType; + //auto deviceType = pDevice->GetDeviceCaps().DevType; { const auto &SCDesc = m_DiligentGraphics->GetSwapChain()->GetDesc(); auto UseReverseZ = m_DiligentGraphics->UsesReverseZ(); -- cgit v1.2.3