Skip to content
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

fix: make compatible with TypeScript 4.3 #183

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

drola
Copy link
Contributor

@drola drola commented Jul 12, 2021

In TypeScript 4.3, WebGLObject was dropped from lib.dom.d.ts.
This commit replaces uses of WebGLObject with WebGLRenderbuffer|WebGLTexture.
Based on reading TWGL's createFramebufferInfo(...) these two are the
only possible object types for attachments in FramebufferInfo.

Relevant TypeScript changes:
Justification for removal of WebGLObject
Removal of WebGLObject

In TypeScript 4.3, `WebGLObject` was dropped from `lib.dom.d.ts`.
This commit replaces uses of `WebGLObject` with `WebGLRenderbuffer|WebGLTexture`.
Based on reading TWGL's `createFramebufferInfo(...)` these two are the
only possible object types for attachments in `FramebufferInfo`.
@greggman greggman merged commit 6eaeb24 into greggman:master Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants