aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-16 13:40:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-16 13:40:51 -0700
commit31b21f67190916b94c5345126ddab327a8feac57 (patch)
treecccacbc112b516121287f71b37e839ee60b1bc90 /tools
parent189186337eb91b0b21c15db42377bbf3ae4acf23 (diff)
Small fix for visualbench
Diffstat (limited to 'tools')
-rw-r--r--tools/VisualBench/VisualBench.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp
index 136162aece..e97db8a308 100644
--- a/tools/VisualBench/VisualBench.cpp
+++ b/tools/VisualBench/VisualBench.cpp
@@ -105,6 +105,8 @@ bool VisualBench::setupBackend() {
}
void VisualBench::resetContext() {
+ fSurface.reset(NULL);
+
fInterface.reset(GrGLCreateNativeInterface());
SkASSERT(fInterface);