From 393c2ff0d2db9c5d84e6ed660ea9f546f438cb47 Mon Sep 17 00:00:00 2001 From: brianosman Date: Wed, 11 May 2016 08:49:59 -0700 Subject: [PATCH] Reset context after doing non-Skia GL rendering. Fixes nanobench crash in GLInstancedArraysBench BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1969623003 Review-Url: https://codereview.chromium.org/1969623003 --- bench/GLBench.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/bench/GLBench.cpp b/bench/GLBench.cpp index f184d770b3..524bfe1109 100644 --- a/bench/GLBench.cpp +++ b/bench/GLBench.cpp @@ -56,6 +56,7 @@ void GLBench::onDraw(int loops, SkCanvas* canvas) { return; } this->glDraw(loops, ctx); + canvas->getGrContext()->resetContext(); } GrGLuint GLBench::CompileShader(const GrGLInterface* gl, const char* shaderSrc, GrGLenum type) {