summaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-04-01 05:39:38 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-04-01 05:39:38 +0000
commit81400ebf6c77c09ea12bbc532ea5658b3c09fc87 (patch)
tree3443198abc30da5a36532b241863d51583a06ce8 /Projects
parentUpdated readme (diff)
downloadDiligentEngine-81400ebf6c77c09ea12bbc532ea5658b3c09fc87.tar.gz
DiligentEngine-81400ebf6c77c09ea12bbc532ea5658b3c09fc87.zip
Fixed issue with d3d11 swap chain faling to resize due to command lists not being released
Diffstat (limited to 'Projects')
-rw-r--r--Projects/Asteroids/src/asteroids_DE.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Projects/Asteroids/src/asteroids_DE.cpp b/Projects/Asteroids/src/asteroids_DE.cpp
index 4d7501b..40d9db2 100644
--- a/Projects/Asteroids/src/asteroids_DE.cpp
+++ b/Projects/Asteroids/src/asteroids_DE.cpp
@@ -769,6 +769,10 @@ void Asteroids::Render(float frameTime, const OrbitCamera& camera, const Setting
for(auto &cmdList : mCmdLists)
{
mDeviceCtxt->ExecuteCommandList(cmdList);
+ // Release command lists now to release all outstanding references
+ // In d3d11 mode, command lists hold references to the swap chain's back buffer
+ // that cause swap chain resize to fail
+ cmdList.Release();
}
}