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
This commit is contained in:
parent
ebf30e8415
commit
393c2ff0d2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user