[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Error catching with getBufferSubData

On Wed, Jun 17, 2015 at 9:52 AM, Florian Bösch <pyalot@gmail.com> wrote:
  • GL_OUT_OF_MEMORY is generated if glMapBufferRange fails because memory for the mapping could not be obtained.
All of these errors indicate that your program is faulty.
That wasn't entirely correct, your program can be correct and you can still run into this error.

A case could be made that code like this:


Is a valid usecase of the boolean return value, because it only synchronizes (gl.getError()) if an error occured as opposed to: