Skip to content

Commit

Permalink
gltbx: remove keywords from argument lists in gl_managed.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpoon authored and ndevenish committed Apr 10, 2024
1 parent 316c8e4 commit 1ace759
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gltbx/gl_managed.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class display_lists_owner:

def __init__(self, range_values):
self.range_values = range_values
self.list = gl.glGenLists(range_values=range_values)
self.list = gl.glGenLists(range_values)

def __del__(self):
try: gl.glDeleteLists(list=self.list, range_values=self.range_values)
try: gl.glDeleteLists(self.list, self.range_values)
except RuntimeError as e:
if (str(e) != 'OpenGL: invalid operation'): raise
# else: apparently the GL context was destroyed already
Expand All @@ -31,13 +31,13 @@ def compile(self, execute=False):
mode = gl.GL_COMPILE_AND_EXECUTE
else:
mode = gl.GL_COMPILE
gl.glNewList(list=self.gl_index, mode=mode)
gl.glNewList(self.gl_index, mode)

def end(self):
gl.glEndList()

def call(self):
gl.glCallList(list=self.gl_index)
gl.glCallList(self.gl_index)

class display_lists:

Expand Down

0 comments on commit 1ace759

Please sign in to comment.