Bug 1478754 - WebGL crash when webgl.enable-surface-texture is enabled on Android; r=jgilbert,rbarker

MozReview-Commit-ID: GBTvZiLspvP
This commit is contained in:
Imanol Fernandez
2018-07-28 12:33:55 +02:00
parent a0071ab711
commit a8c39f6eea
4 changed files with 16 additions and 0 deletions

View File

@@ -429,6 +429,11 @@ CanvasClientSharedSurface::UpdateRenderer(gfx::IntSize aSize, Renderer& aRendere
SharedSurface* surf = mShSurfClient->Surf();
if (!surf->IsBufferAvailable()) {
NS_WARNING("SharedSurface buffer not available, skip update");
return;
}
// Readback if needed.
mReadbackClient = nullptr;