Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arcade/gl/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def activate(cls, ctx: "Context"):
"""
cls.active = ctx

def enable(self, *flags):
def enable(self, *flags: int):
"""
Enables one or more context flags::

Expand All @@ -421,7 +421,7 @@ def enable(self, *flags):
for flag in flags:
gl.glEnable(flag)

def enable_only(self, *args):
def enable_only(self, *args: int):
"""
Enable only some flags. This will disable all other flags.
This is a simple way to ensure that context flag states
Expand Down
2 changes: 1 addition & 1 deletion arcade/gl/vertex_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def delete_glo(ctx: "Context", glo: gl.GLuint):
ctx.stats.decr("vertex_array")

def _build(
self, program: Program, content: Sequence[BufferDescription], index_buffer
self, program: Program, content: Sequence[BufferDescription], index_buffer: Optional[Buffer]
):
"""Build a vertex array compatible with the program passed in"""
gl.glGenVertexArrays(1, byref(self.glo))
Expand Down