Index: tools/VisualBench/VisualBench.cpp |
diff --git a/tools/VisualBench/VisualBench.cpp b/tools/VisualBench/VisualBench.cpp |
index 136162aece9f554f3f35571119088f1a6ed1457f..e97db8a308901b0223e948c9a9f29a03738aaaf7 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); |