Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
add check for wddm3
Browse files Browse the repository at this point in the history
  • Loading branch information
mq1n committed Jun 27, 2021
1 parent 765b6fc commit 2ce4954
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2ce4954

Please sign in to comment.