mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Specify ctx type
This commit is contained in:
@ -72,9 +72,9 @@ class Camera(object):
|
||||
|
||||
def init_context(self) -> None:
|
||||
if self.window is None:
|
||||
self.ctx = moderngl.create_standalone_context()
|
||||
self.ctx: moderngl.Context = moderngl.create_standalone_context()
|
||||
else:
|
||||
self.ctx = self.window.ctx
|
||||
self.ctx: moderngl.Context = self.window.ctx
|
||||
|
||||
self.ctx.enable(moderngl.PROGRAM_POINT_SIZE)
|
||||
self.ctx.enable(moderngl.BLEND)
|
||||
|
Reference in New Issue
Block a user