Bug 1388020. r=nical, a=RyanVM

This commit is contained in:
Andrew Osmond 2018-04-10 09:40:02 -04:00 committed by Roy Tam
commit e3e79721f6
6 changed files with 41 additions and 6 deletions

View file

@ -119,6 +119,10 @@ TextureImageEGL::DirectUpdate(gfx::DataSourceSurface* aSurf, const nsIntRegion&
&uploadSize,
needInit,
aFrom);
if (mTextureFormat == SurfaceFormat::UNKNOWN) {
return false;
}
if (uploadSize > 0) {
UpdateUploadSize(uploadSize);
}