Skip to content

Commit dd271b5

Browse files
author
Avaer Kazmer
committed
Bugfix proxied WebGLRenderingContext not having static constants
1 parent 5ec9d1e commit dd271b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Graphics.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ function ProxiedWebGLRenderingContext(canvas) {
193193
}
194194
ProxiedWebGLRenderingContext.prototype = Object.create(WebGLRenderingContext.prototype);
195195

196+
for (const k in WebGLRenderingContext) {
197+
ProxiedWebGLRenderingContext[k] = WebGLRenderingContext[k];
198+
}
196199
for (const k in WebGLRenderingContext.prototype) {
197200
const o = Object.getOwnPropertyDescriptor(WebGLRenderingContext.prototype, k);
198201
if (o.get) {

0 commit comments

Comments
 (0)