Index: tools/VisualBench/VisualBenchmarkStream.cpp |
diff --git a/tools/VisualBench/VisualBenchmarkStream.cpp b/tools/VisualBench/VisualBenchmarkStream.cpp |
index 2efb3c886e4477c5a9033a5ac9c6bca7a186071e..cfeff751967e52835b604c8655cb16047a0cd610 100644 |
--- a/tools/VisualBench/VisualBenchmarkStream.cpp |
+++ b/tools/VisualBench/VisualBenchmarkStream.cpp |
@@ -131,8 +131,8 @@ Benchmark* VisualBenchmarkStream::next() { |
// TODO move this all to --config |
if (bench && FLAGS_cpu) { |
bench = new CpuWrappedBenchmark(fSurfaceProps, bench); |
- } else if (bench && FLAGS_nvpr) { |
- bench = new NvprWrappedBenchmark(fSurfaceProps, bench, 4); |
+ } else if (bench && 0 != FLAGS_nvpr) { |
+ bench = new NvprWrappedBenchmark(fSurfaceProps, bench, FLAGS_nvpr); |
} |
fBenchmark.reset(bench); |