From 2ce495452234db5f2377d109c631580b6bd9c61c Mon Sep 17 00:00:00 2001 From: mq1n Date: Sun, 27 Jun 2021 17:10:47 +0300 Subject: [PATCH] add check for wddm3 --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e3fc61c..5aba163 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -544,9 +544,10 @@ int main(int, char* argv[]) return EXIT_FAILURE; } - if (c_stFileBuffer.find("Driver Model: WDDM 2") == std::string::npos) + if (c_stFileBuffer.find("Driver Model: WDDM 2") == std::string::npos && + c_stFileBuffer.find("Driver Model: WDDM 3") == std::string::npos) { - std::cerr << "WDDM 2 is not found in dxdiag config!" << std::endl; + std::cerr << "WDDM 2/3 is not found in dxdiag config!" << std::endl; std::system("PAUSE"); return EXIT_FAILURE; }