Skip to content

Commit 20a08e6

Browse files
committed
Add window UBO binding for WebGL contexts
1 parent ff46e51 commit 20a08e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arcade/gl/backends/webgl/context.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,15 @@ def __init__(self, *args, **kwargs):
367367
WebGLContext.__init__(self, *args, **kwargs)
368368
ArcadeContext.__init__(self, *args, **kwargs)
369369

370+
def bind_window_block(self):
371+
self._gl.bindBufferRange(
372+
enums.UNIFORM_BUFFER,
373+
0,
374+
self._window_block.buffer.id,
375+
0,
376+
128,
377+
)
378+
370379

371380
class WebGLInfo(Info):
372381
def __init__(self, ctx: WebGLContext):

0 commit comments

Comments
 (0)