diff --git a/src/framebuffers.js b/src/framebuffers.js index 03ec310f..7ef0c796 100644 --- a/src/framebuffers.js +++ b/src/framebuffers.js @@ -94,7 +94,7 @@ const LINEAR = 0x2601; * @property {number} [level] level for `gl.framebufferTexture2D`. Defaults to 0. * @property {number} [layer] layer for `gl.framebufferTextureLayer`. Defaults to undefined. * If set then `gl.framebufferTextureLayer` is called, if not then `gl.framebufferTexture2D` - * @property {WebGLObject} [attachment] An existing renderbuffer or texture. + * @property {WebGLRenderbuffer|WebGLTexture} [attachment] An existing renderbuffer or texture. * If provided will attach this Object. This allows you to share * attachments across framebuffers. * @memberOf module:twgl @@ -137,7 +137,7 @@ function isRenderbufferFormat(format) { /** * @typedef {Object} FramebufferInfo * @property {WebGLFramebuffer} framebuffer The WebGLFramebuffer for this framebufferInfo - * @property {WebGLObject[]} attachments The created attachments in the same order as passed in to {@link module:twgl.createFramebufferInfo}. + * @property {(WebGLRenderbuffer|WebGLTexture)[]} attachments The created attachments in the same order as passed in to {@link module:twgl.createFramebufferInfo}. * @property {number} width The width of the framebuffer and its attachments * @property {number} height The width of the framebuffer and its attachments * @memberOf module:twgl