regl icon indicating copy to clipboard operation
regl copied to clipboard

Should throw an error when given invalid framebuffer properties

Open rreusser opened this issue 7 years ago • 2 comments

regl.framebuffer({foo: 'bar'}) doesn't throw an error about invalid property names. In particular data does not throw an error which has lead to some confusion due to the otherwise similar (in some cases feels almost interchangeable) behavior compared to regl.texture.

Edit: retroactive apologies for the 'should' wording.

rreusser avatar Jan 19 '17 23:01 rreusser

(tried to come up with a PR but that's gonna takes some time to work through where that would happen)

rreusser avatar Jan 20 '17 16:01 rreusser

This makes some sense, could be added as a special check.

mikolalysenko avatar Jan 12 '18 03:01 mikolalysenko