diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-19 19:08:25 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 12:19:42 +0200 |
commit | e379942af73b164b57f443b403fbae058e28174f (patch) | |
tree | f608c532291ec413720c5fde640000b0a889fb2d /dom/canvas/WebGLTexture.h | |
parent | bb3df4d153b488ebc8aaa89509ae4b5e739312cc (diff) | |
download | UXP-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.h | 1 |
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); } |