SampleUtils: Look at argv starting from 1

This commit is contained in:
Corentin Wallez 2018-06-07 13:03:29 +02:00 committed by Corentin Wallez
parent 79d9e16d3c
commit 862f884a65
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {