From e7189e33f533f9b974b22c2110b522a13bc4c7f6 Mon Sep 17 00:00:00 2001 From: Andrew Osmond Date: Tue, 10 Apr 2018 09:40:02 -0400 Subject: Bug 1388020. r=nical, a=RyanVM --- gfx/gl/TextureImageEGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gfx/gl/TextureImageEGL.cpp') diff --git a/gfx/gl/TextureImageEGL.cpp b/gfx/gl/TextureImageEGL.cpp index 87a547c26..3bb2987d1 100644 --- a/gfx/gl/TextureImageEGL.cpp +++ b/gfx/gl/TextureImageEGL.cpp @@ -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); } -- cgit v1.2.3