1
0
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:
narzoul 2022-05-28 11:10:27 +02:00
parent 0b1980bf20
commit 726f237724

View File

@ -108,6 +108,11 @@ namespace
HRESULT openAdapterCommon(D3DDDIARG_OPENADAPTER* pOpenData, std::function<HRESULT()> origOpenAdapter)
{
if (pOpenData->Interface > 7)
{
return origOpenAdapter();
}
D3dDdi::ScopedCriticalSection lock;
D3dDdi::AdapterCallbacks::hookVtable(*pOpenData->pAdapterCallbacks, pOpenData->Version);
HRESULT result = origOpenAdapter();