summaryrefslogtreecommitdiffstats
path: root/unityplugin
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-15 19:15:22 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-15 19:15:22 +0000
commit95ebb00044fa4555d696fb00e6f96dc5570def7d (patch)
tree85c04f01dd2c4d7a8b5511638a45c7eca81460d3 /unityplugin
parentFixed paths to copy Unity plugins to (diff)
downloadDiligentEngine-95ebb00044fa4555d696fb00e6f96dc5570def7d.tar.gz
DiligentEngine-95ebb00044fa4555d696fb00e6f96dc5570def7d.zip
Minor update to CMake; fixed compiler warning; updated DiligentCore submodule
Diffstat (limited to 'unityplugin')
-rw-r--r--unityplugin/GhostCubeScene/CMakeLists.txt2
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeScene.cpp2
2 files changed, 3 insertions, 1 deletions
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();