On Sat, Mar 31, 2012 at 8:54 AM, Boris Zbarsky <firstname.lastname@example.org>
All it says is:
ÂBind the given WebGLFramebuffer object to the given binding point
Â(target), which must be FRAMEBUFFER.
What should happen when target is not a FRAMEBUFFER? ÂAn exception? Â(If so which one?) Silently doing nothing?
This needs to be defined...
WebGL depends on OpenGL ES for a lot of its particulars.Â There are links to the relevant spec next to the function.Â Unfortunately, since they're PDFs, the section links almost never work so you have to find the section yourself, and it's a pain to read.Â I wish they'd bring those specs out of the PDF dark ages (but of the list of things Khronos needs to fix, that fight's far down the list, I suppose).
That said, ES doesn't actually seem to say what happens here, either.Â Other functions define it:
> enum CheckFramebufferStatus( enum target );
> If target is not FRAMEBUFFER, INVALID_ENUM is generated. If CheckFramebufferStatus generates an error, 0 is returned.
but bindFrameBuffer doesn't seem to have this text.Â That looks like an oversight, but maybe it's defined less clearly somewhere else.