diff --git a/3rdparty/dxc/dxc b/3rdparty/dxc/dxc index 4c5fbdc9c1..ef98b9792c 160000 --- a/3rdparty/dxc/dxc +++ b/3rdparty/dxc/dxc @@ -1 +1 @@ -Subproject commit 4c5fbdc9c1b9e8c4daaed07a30b60c4f91d96e4a +Subproject commit ef98b9792c4adf476e4deaa21a536172a25fbfba diff --git a/examples_tests b/examples_tests index 9f89a9e0a8..895aeab82d 160000 --- a/examples_tests +++ b/examples_tests @@ -1 +1 @@ -Subproject commit 9f89a9e0a8362728924b12bcb131fe97e4037a10 +Subproject commit 895aeab82dc3fa6dfa823b916efa0f286ffeca8a diff --git a/src/nbl/ext/ImGui/ImGui.cpp b/src/nbl/ext/ImGui/ImGui.cpp index a0de287559..6c4ec89d43 100644 --- a/src/nbl/ext/ImGui/ImGui.cpp +++ b/src/nbl/ext/ImGui/ImGui.cpp @@ -10,6 +10,7 @@ #include "nbl/ext/ImGui/ImGui.h" #include "nbl/ext/ImGui/builtin/hlsl/common.hlsl" #include "imgui/imgui.h" +#include "imgui/imgui_internal.h" #include "imgui/misc/cpp/imgui_stdlib.h" #ifdef NBL_EMBED_BUILTIN_RESOURCES @@ -948,14 +949,20 @@ UI::UI(SCreationParameters&& creationParams, core::smart_refctd_ptr(m_imContextBackPointer); + ImGuiContext* const previousContext = ImGui::GetCurrentContext(); + if (context && previousContext != context) + ImGui::SetCurrentContext(context); // we must call it to unlock atlas from potential "render" state before we kill it (obvsly if its ours!) - if(m_imFontAtlasBackPointer) + if (m_imFontAtlasBackPointer && context && context->WithinFrameScope) ImGui::EndFrame(); // context belongs to the instance, we must free it - if(m_imContextBackPointer) - ImGui::DestroyContext(reinterpret_cast(m_imContextBackPointer)); + if (context) + ImGui::DestroyContext(context); + if (previousContext && previousContext != context) + ImGui::SetCurrentContext(previousContext); // and if we own the atlas we must free it as well, if user passed its own at creation time then its "shared" - at this point m_imFontAtlasBackPointer is nullptr and we don't free anything if (m_imFontAtlasBackPointer) diff --git a/tools/nsc/manifests/nsc-windows-x64-release.tag b/tools/nsc/manifests/nsc-windows-x64-release.tag index 2b2bd74fe3..bf61e548f2 100644 --- a/tools/nsc/manifests/nsc-windows-x64-release.tag +++ b/tools/nsc/manifests/nsc-windows-x64-release.tag @@ -1 +1 @@ -nsc-windows-x64-release-29bda527be490f8214e937ae33bbffd438cce6e6 +nsc-windows-x64-release-eb1bc723b1159029c572f5bf539dafeea03bbbcc diff --git a/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/build-info.json.dvc b/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/build-info.json.dvc index 8ca7a61538..55c47ae9c6 100644 --- a/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/build-info.json.dvc +++ b/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/build-info.json.dvc @@ -1,5 +1,5 @@ outs: -- md5: f739d206ca9055781c891f130c6ebc1b - size: 1311 +- md5: 27b41f54ba2fbed4e8a0c507e3efb152 + size: 1337 hash: md5 path: build-info.json diff --git a/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/nsc.exe.dvc b/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/nsc.exe.dvc index a00e876502..1595541849 100644 --- a/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/nsc.exe.dvc +++ b/tools/nsc/manifests/nsc-windows-x64-release/exe/tools/nsc/bin/nsc.exe.dvc @@ -1,5 +1,5 @@ outs: -- md5: c4bb7179384f8fe59a5706751a2ef473 +- md5: 2f6ac2e50fe11b36b5a426bcb3b3fa3a size: 258048 hash: md5 path: nsc.exe diff --git a/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/3rdparty/dxc/dxcompiler.dll.dvc b/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/3rdparty/dxc/dxcompiler.dll.dvc index b4ba827093..d1e74564cf 100644 --- a/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/3rdparty/dxc/dxcompiler.dll.dvc +++ b/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/3rdparty/dxc/dxcompiler.dll.dvc @@ -1,5 +1,5 @@ outs: -- md5: 862b11b94cb23c8bac2a20a215eb6597 - size: 21601280 +- md5: 2f88a872e7e2c9b1c07683f265559b05 + size: 21609472 hash: md5 path: dxcompiler.dll diff --git a/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/Nabla.dll.dvc b/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/Nabla.dll.dvc index 9fdd807d6a..30631c777b 100644 --- a/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/Nabla.dll.dvc +++ b/tools/nsc/manifests/nsc-windows-x64-release/runtime/nbl/Nabla.dll.dvc @@ -1,5 +1,5 @@ outs: -- md5: 5edb2790e9ceae424e3c0a04e3d84718 - size: 29212672 +- md5: f3efa28ec945dae71bf6bbe34331d8ca + size: 29222400 hash: md5 path: Nabla.dll