commit | ba3664285b5b8d776b6f0c8e4c9f4faabe58a881 | [log] [tgz] |
---|---|---|
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Oct 19 21:02:27 2011 +0000 |
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Wed Oct 19 21:02:27 2011 +0000 |
tree | 974decd30f3dfff0164d6ba8aa3cc34465223f1c | |
parent | 788e2474846fd2136ea7f05ca41f7e46c652d508 [diff] [blame] |
Pass NULL to BenchTimer cons when gl context creation failed. git-svn-id: http://skia.googlecode.com/svn/trunk@2501 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index e12f274..0a5ac71 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp
@@ -437,7 +437,7 @@ } } } - BenchTimer timer = BenchTimer(&glContext); + BenchTimer timer = BenchTimer(context ?&glContext : NULL); #else BenchTimer timer = BenchTimer(); #endif