summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLTexture.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-19 19:08:25 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 12:19:42 +0200
commite379942af73b164b57f443b403fbae058e28174f (patch)
treef608c532291ec413720c5fde640000b0a889fb2d /dom/canvas/WebGLTexture.h
parentbb3df4d153b488ebc8aaa89509ae4b5e739312cc (diff)
downloadUXP-e379942af73b164b57f443b403fbae058e28174f.tar
UXP-e379942af73b164b57f443b403fbae058e28174f.tar.gz
UXP-e379942af73b164b57f443b403fbae058e28174f.tar.lz
UXP-e379942af73b164b57f443b403fbae058e28174f.tar.xz
UXP-e379942af73b164b57f443b403fbae058e28174f.zip
Truncate Buffer/Texture on GL_OOM.
Diffstat (limited to 'dom/canvas/WebGLTexture.h')
-rw-r--r--dom/canvas/WebGLTexture.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/canvas/WebGLTexture.h b/dom/canvas/WebGLTexture.h
index 66e781f23..8d3024590 100644
--- a/dom/canvas/WebGLTexture.h
+++ b/dom/canvas/WebGLTexture.h
@@ -386,6 +386,7 @@ public:
bool* const out_initFailed);
bool IsMipmapCubeComplete() const;
+ void Truncate();
bool IsCubeMap() const { return (mTarget == LOCAL_GL_TEXTURE_CUBE_MAP); }