Handle GL_OUT_OF_MEMORY errors in GLContext where we create textures/renderbuffers e.g. in ResizeOffscreenFBO()




8 years ago
8 years ago


(Reporter: bjacob, Unassigned)


Firefox Tracking Flags

(Not tracked)


In bug 656215 we're fixing crashes by properly detecting when textures/renderbuffers that we try to create exceed the maximum supported size. However we still don't handle the case where despite having an allowed size, they can't be created because we're out of video memory.

Whenever we create a texture or a renderbuffer, i.e. whenever we call glTexImage2D, glRenderbufferStorage and friends, we should check for GL errors, especially for GL_OUT_OF_MEMORY.

Most importantly, in GLContext::ResizeOffscreenFBO().
Blocks: 656215
You need to log in before you can comment on or make changes to this bug.