mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-29 16:56:45 +00:00
fix for fatal error when closing dx11 games
This commit is contained in:
@@ -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("");
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user