Fix hooks not working

Even if dxgi is hooked, it will not be rehooked, HookDXGIPresent has a check, but different dx versions need a call to loadFunctions.
This commit is contained in:
Nemirtingas 2020-01-20 08:14:10 +01:00 committed by Mr_Goldberg
parent f22828d858
commit 1dc5bcc5c1
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278

View File

@ -271,7 +271,7 @@ void Renderer_Detector::hook_dx9()
void Renderer_Detector::hook_dx10()
{
if (!_dxgi_hooked && !_renderer_found)
if (!_dx10_hooked && !_renderer_found)
{
create_hwnd();
if (dummy_hWnd == nullptr)
@ -324,7 +324,7 @@ void Renderer_Detector::hook_dx10()
void Renderer_Detector::hook_dx11()
{
if (!_dxgi_hooked && !_renderer_found)
if (!_dx11_hooked && !_renderer_found)
{
create_hwnd();
if (dummy_hWnd == nullptr)
@ -378,7 +378,7 @@ void Renderer_Detector::hook_dx11()
void Renderer_Detector::hook_dx12()
{
if (!_dxgi_hooked && !_renderer_found)
if (!_dx12_hooked && !_renderer_found)
{
create_hwnd();
if (dummy_hWnd == nullptr)