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