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/WebGLBuffer.cpp | |
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/WebGLBuffer.cpp')
-rw-r--r-- | dom/canvas/WebGLBuffer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dom/canvas/WebGLBuffer.cpp b/dom/canvas/WebGLBuffer.cpp index 1eaf37ac4..02a8f649f 100644 --- a/dom/canvas/WebGLBuffer.cpp +++ b/dom/canvas/WebGLBuffer.cpp @@ -134,6 +134,7 @@ WebGLBuffer::BufferData(GLenum target, size_t size, const void* data, GLenum usa if (error) { MOZ_ASSERT(error == LOCAL_GL_OUT_OF_MEMORY); mContext->ErrorOutOfMemory("%s: Error from driver: 0x%04x", funcName, error); + mByteLength = 0; return; } } else { |