Skip to content

fix: make compatible with TypeScript 4.3 #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/framebuffers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {Array.<(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
Expand Down