Skip to content

Commit

Permalink
fix openGl error when clicking in gremlin
Browse files Browse the repository at this point in the history
  • Loading branch information
hansu committed Jan 1, 2024
1 parent ab54ee4 commit 85e847b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/python/rs274/glcanon.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@ def select(self, x, y):
except OverflowError:
self.select_buffer_size *= 2
continue
except OpenGL.error.GLError as e:
if e.err == GL_STACK_OVERFLOW:
self.select_buffer_size *= 2
continue
break

if buffer:
Expand Down

0 comments on commit 85e847b

Please sign in to comment.