fix for fatal error when closing dx11 games

This commit is contained in:
cdozdil
2024-07-01 11:05:37 +03:00
parent cef7df1447
commit 1dec39d578
2 changed files with 6 additions and 5 deletions
+3 -5
View File
@@ -912,12 +912,10 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserv
PrepareLogger();
spdlog::info("{0} loaded", VER_PRODUCT_NAME);
spdlog::info("============================");
spdlog::warn("");
spdlog::warn("OptiScaler is freely downloadable from https://github.com/cdozdil/OptiScaler/releases or https://www.nexusmods.com//mods/1/&game_id=6571");
spdlog::warn("");
spdlog::info("=================================");
spdlog::warn("OptiScaler is freely downloadable from https://github.com/cdozdil/OptiScaler/releases");
//spdlog::warn("or https://www.nexusmods.com//mods/1/&game_id=6571");
spdlog::warn("If you paid for these files, you've been scammed");
spdlog::warn("");
spdlog::warn("DO NOT USE IN MULTIPLAYER GAMES");
spdlog::warn("");
+3
View File
@@ -283,6 +283,9 @@ static void CleanupRenderTarget(bool clearQueue)
{
spdlog::debug("ImGuiOverlayDx12::CleanupRenderTarget({0})!", clearQueue);
if (!_isInited)
return;
_dx12CleanMutex.lock();
for (UINT i = 0; i < NUM_BACK_BUFFERS; ++i)