diff --git a/DDrawCompat/D3dDdi/Hooks.cpp b/DDrawCompat/D3dDdi/Hooks.cpp index c0ad909..37f9101 100644 --- a/DDrawCompat/D3dDdi/Hooks.cpp +++ b/DDrawCompat/D3dDdi/Hooks.cpp @@ -108,6 +108,11 @@ namespace HRESULT openAdapterCommon(D3DDDIARG_OPENADAPTER* pOpenData, std::function origOpenAdapter) { + if (pOpenData->Interface > 7) + { + return origOpenAdapter(); + } + D3dDdi::ScopedCriticalSection lock; D3dDdi::AdapterCallbacks::hookVtable(*pOpenData->pAdapterCallbacks, pOpenData->Version); HRESULT result = origOpenAdapter();