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.merge-requests/28/merge
parent
f22828d858
commit
1dc5bcc5c1
|
@ -271,7 +271,7 @@ void Renderer_Detector::hook_dx9()
|
||||||
|
|
||||||
void Renderer_Detector::hook_dx10()
|
void Renderer_Detector::hook_dx10()
|
||||||
{
|
{
|
||||||
if (!_dxgi_hooked && !_renderer_found)
|
if (!_dx10_hooked && !_renderer_found)
|
||||||
{
|
{
|
||||||
create_hwnd();
|
create_hwnd();
|
||||||
if (dummy_hWnd == nullptr)
|
if (dummy_hWnd == nullptr)
|
||||||
|
@ -324,7 +324,7 @@ void Renderer_Detector::hook_dx10()
|
||||||
|
|
||||||
void Renderer_Detector::hook_dx11()
|
void Renderer_Detector::hook_dx11()
|
||||||
{
|
{
|
||||||
if (!_dxgi_hooked && !_renderer_found)
|
if (!_dx11_hooked && !_renderer_found)
|
||||||
{
|
{
|
||||||
create_hwnd();
|
create_hwnd();
|
||||||
if (dummy_hWnd == nullptr)
|
if (dummy_hWnd == nullptr)
|
||||||
|
@ -378,7 +378,7 @@ void Renderer_Detector::hook_dx11()
|
||||||
|
|
||||||
void Renderer_Detector::hook_dx12()
|
void Renderer_Detector::hook_dx12()
|
||||||
{
|
{
|
||||||
if (!_dxgi_hooked && !_renderer_found)
|
if (!_dx12_hooked && !_renderer_found)
|
||||||
{
|
{
|
||||||
create_hwnd();
|
create_hwnd();
|
||||||
if (dummy_hWnd == nullptr)
|
if (dummy_hWnd == nullptr)
|
||||||
|
|
Loading…
Reference in New Issue