[SKIA] Must make skia's GL context current before drawing in GraphicsContext::clearRect
[WebKit-https.git] / Source / WebCore / platform / graphics / skia / GraphicsContextSkia.cpp
index 23b9114010c3323aab23d8c8e114566ef8914450..5dc784a87d71df21bf7f2449eea044feb3c9efa4 100644 (file)
@@ -326,6 +326,8 @@ void GraphicsContext::clearRect(const FloatRect& rect)
     if (!isRectSkiaSafe(getCTM(), r))
         ClipRectToCanvas(*platformContext()->canvas(), r, &r);
 
+    platformContext()->makeGrContextCurrent();
+
     SkPaint paint;
     platformContext()->setupPaintForFilling(&paint);
     paint.setXfermodeMode(SkXfermode::kClear_Mode);