Add option to hard-break on validation errors in tests

* On D3D we also start checking for leaking objects on shutdown (Vulkan this is
  done by default, GL we have no control over validation).
This commit is contained in:
baldurk committed 2026-11-10 12:02:45 +00:00
1 parent 5ebc85a6bd
commit ae2f8db399
14 files changed
+1102 -3

No files matched your search

+6
View File
@@ -445,6 +445,7 @@ std::string GraphicsTest::dataRoot;
int GraphicsTest::screenWidth = 400;
int GraphicsTest::screenHeight = 300;
bool GraphicsTest::debugDevice = false;
bool GraphicsTest::breakOnDebug = false;
void GraphicsTest::Prepare(int argc, char **argv)
{
@@ -476,6 +477,11 @@ void GraphicsTest::Prepare(int argc, char **argv)
debugDevice = true;
}
if(!strcmp(argv[i], "--break-on-debug"))
{
breakOnDebug = true;
}
if(i + 1 < argc && (!strcmp(argv[i], "--frames") || !strcmp(argv[i], "--framecount") ||
!strcmp(argv[i], "--max-frames")))
{