mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
SampleUtils: Look at argv starting from 1
This commit is contained in:
parent
79d9e16d3c
commit
862f884a65
@ -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]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user