From 862f884a655fa594d1aed15478e544fb7a03a11a Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 7 Jun 2018 13:03:29 +0200 Subject: [PATCH] SampleUtils: Look at argv starting from 1 --- examples/SampleUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/SampleUtils.cpp b/examples/SampleUtils.cpp index 8b8c89e008..41f46a9a2d 100644 --- a/examples/SampleUtils.cpp +++ b/examples/SampleUtils.cpp @@ -161,7 +161,7 @@ void GetNextRenderPassDescriptor(const nxt::Device& device, } bool InitSample(int argc, const char** argv) { - for (int i = 0; i < argc; i++) { + for (int i = 1; i < argc; i++) { if (std::string("-b") == argv[i] || std::string("--backend") == argv[i]) { i++; if (i < argc && std::string("d3d12") == argv[i]) {