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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user