Skip to content

Commit

Permalink
Fix crash to desktop on Windows 7
Browse files Browse the repository at this point in the history
Fixes #654
  • Loading branch information
Mattiwatti committed Mar 1, 2022
1 parent 0e10d09 commit 19b6fe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/kiero/kiero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*();

Expand Down

0 comments on commit 19b6fe3

Please sign in to comment.