summaryrefslogtreecommitdiffstats
path: root/gfx/gl/TextureImageEGL.cpp
diff options
context:
space:
mode:
authorAndrew Osmond <aosmond@mozilla.com>2018-04-10 09:40:02 -0400
committerwolfbeast <mcwerewolf@gmail.com>2018-04-19 11:58:39 +0200
commite7189e33f533f9b974b22c2110b522a13bc4c7f6 (patch)
tree8e6b6f1e0929d73f3b0568c30b99415e825866a6 /gfx/gl/TextureImageEGL.cpp
parentd66d343e1b6a5c3be08f82a0ac2489a91c647d65 (diff)
downloadUXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar.gz
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar.lz
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.tar.xz
UXP-e7189e33f533f9b974b22c2110b522a13bc4c7f6.zip
Bug 1388020. r=nical, a=RyanVM
Diffstat (limited to 'gfx/gl/TextureImageEGL.cpp')
-rw-r--r--gfx/gl/TextureImageEGL.cpp4
1 files changed, 4 insertions, 0 deletions
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);
}