Skip to content

Commit 3331067

Browse files
committed
Fix broken headless rendering
1 parent 4058e1a commit 3331067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demosys/context/headless.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def __init__(self):
1919

2020
self._close = False
2121
self.ctx = moderngl.create_standalone_context()
22+
context.WINDOW = self
2223

2324
self.fbo = FBO()
2425
self.fbo.ctx = self.ctx
@@ -27,7 +28,6 @@ def __init__(self):
2728
depth_attachment=self.ctx.depth_texture((self.width, self.height)),
2829
)
2930
# self.fbo.default_framebuffer = True
30-
context.WINDOW = self
3131
self.set_default_viewport()
3232

3333
def draw(self, current_time, frame_time):

0 commit comments

Comments
 (0)