Skip to content

Commit

Permalink
Merge pull request #670 from Mattiwatti/win7-crash-fix
Browse files Browse the repository at this point in the history
Fix crash to desktop on Windows 7
  • Loading branch information
Yamashi authored Mar 2, 2022
2 parents 0e10d09 + 19b6fe3 commit be1ac13
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 be1ac13

Please sign in to comment.