greggman / twgl.js

A Tiny WebGL helper Library
http://twgljs.org
MIT License
2.67k stars 260 forks source link

fix: make compatible with TypeScript 4.3 #183

Closed drola closed 3 years ago

drola commented 3 years ago

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