mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1222083 - verify that a Skia GL context is actually available before trying to use it in Canvas2D drawImage. r=jmuizelaar
--HG-- extra : rebase_source : 2ddd185d711bc5cbdee08747b2fcc58a66719306
This commit is contained in:
parent
49f15c1e44
commit
5338c02793
@ -4402,6 +4402,7 @@ CanvasRenderingContext2D::DrawImage(const CanvasImageSource& image,
|
||||
|
||||
#ifdef USE_SKIA_GPU
|
||||
if (mRenderingMode == RenderingMode::OpenGLBackendMode &&
|
||||
mIsSkiaGL &&
|
||||
!srcSurf &&
|
||||
image.IsHTMLVideoElement() &&
|
||||
gfxPlatform::GetPlatform()->GetSkiaGLGlue()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user