mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 11:44:53 +01:00
Renammed hook_<renderer> to start_hook
This commit is contained in:
parent
2fe5e90294
commit
4d3c355fcc
10 changed files with 13 additions and 13 deletions
|
|
@ -22,7 +22,7 @@ HRESULT GetDeviceAndCtxFromSwapchain(IDXGISwapChain* pSwapChain, ID3D11Device**
|
|||
return ret;
|
||||
}
|
||||
|
||||
void DX11_Hook::hook_dx11(UINT SDKVersion)
|
||||
void DX11_Hook::start_hook()
|
||||
{
|
||||
if (!_hooked)
|
||||
{
|
||||
|
|
@ -44,7 +44,7 @@ void DX11_Hook::hook_dx11(UINT SDKVersion)
|
|||
SwapChainDesc.SampleDesc.Quality = 0;
|
||||
SwapChainDesc.Windowed = TRUE;
|
||||
|
||||
D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, NULL, SDKVersion, &SwapChainDesc, &pSwapChain, &pDevice, NULL, NULL);
|
||||
D3D11CreateDeviceAndSwapChain(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, NULL, NULL, D3D11_SDK_VERSION, &SwapChainDesc, &pSwapChain, &pDevice, NULL, NULL);
|
||||
|
||||
if (pDevice != nullptr && pSwapChain != nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue