Ensure Window's scene always points back to window

Issues can arise in the few milliseconds of startup otherwise.
This commit is contained in:
Grant Sanderson
2023-02-04 16:51:14 -08:00
parent 4e90a77fcd
commit d1b1df64a5

View File

@ -29,6 +29,7 @@ class Window(PygletWindow):
size: tuple[int, int] = (1280, 720),
samples = 0
):
scene.window = self
super().__init__(size=size, samples=samples)
self.default_size = size