mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Specify ctx type
This commit is contained in:
parent
0d36f17f9c
commit
28c4921a1a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue