summaryrefslogtreecommitdiffstats
path: root/gfx/gl/GLTextureImage.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/GLTextureImage.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/GLTextureImage.cpp')
-rw-r--r--gfx/gl/GLTextureImage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/gl/GLTextureImage.cpp b/gfx/gl/GLTextureImage.cpp
index c91d558af..65678432d 100644
--- a/gfx/gl/GLTextureImage.cpp
+++ b/gfx/gl/GLTextureImage.cpp
@@ -149,6 +149,9 @@ BasicTextureImage::DirectUpdate(gfx::DataSourceSurface* aSurf, const nsIntRegion
&uploadSize,
needInit,
aFrom);
+ if (mTextureFormat == SurfaceFormat::UNKNOWN) {
+ return false;
+ }
if (uploadSize > 0) {
UpdateUploadSize(uploadSize);