mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
Don't hook drivers for Direct3D 8/9 runtimes
This commit is contained in:
parent
0b1980bf20
commit
726f237724
@ -108,6 +108,11 @@ namespace
|
|||||||
|
|
||||||
HRESULT openAdapterCommon(D3DDDIARG_OPENADAPTER* pOpenData, std::function<HRESULT()> origOpenAdapter)
|
HRESULT openAdapterCommon(D3DDDIARG_OPENADAPTER* pOpenData, std::function<HRESULT()> origOpenAdapter)
|
||||||
{
|
{
|
||||||
|
if (pOpenData->Interface > 7)
|
||||||
|
{
|
||||||
|
return origOpenAdapter();
|
||||||
|
}
|
||||||
|
|
||||||
D3dDdi::ScopedCriticalSection lock;
|
D3dDdi::ScopedCriticalSection lock;
|
||||||
D3dDdi::AdapterCallbacks::hookVtable(*pOpenData->pAdapterCallbacks, pOpenData->Version);
|
D3dDdi::AdapterCallbacks::hookVtable(*pOpenData->pAdapterCallbacks, pOpenData->Version);
|
||||||
HRESULT result = origOpenAdapter();
|
HRESULT result = origOpenAdapter();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user