From 19b6fe3c2823a76a7b4a1f6aa29e236ad0670df3 Mon Sep 17 00:00:00 2001 From: Matthijs Lavrijsen Date: Tue, 1 Mar 2022 23:22:28 +0100 Subject: [PATCH] Fix crash to desktop on Windows 7 Fixes #654 --- src/kiero/kiero.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kiero/kiero.cpp b/src/kiero/kiero.cpp index 3c14403d..340257df 100644 --- a/src/kiero/kiero.cpp +++ b/src/kiero/kiero.cpp @@ -215,7 +215,9 @@ kiero::Status::Enum kiero::init() g_methodsTable = (uint150_t*)::calloc(176, sizeof(uint150_t)); - g_swapChainVtable = *(void***)swapChain.operator IDXGISwapChain3 *(); + if (!g_isDownLevelDevice) + g_swapChainVtable = *(void***)swapChain.operator IDXGISwapChain3 *(); + g_commandListVtable = *(void***)commandList.operator ID3D12GraphicsCommandList *(); g_commandQueueVtable = *(void***)commandQueue.operator ID3D12CommandQueue*();