Skip to content

Commit 15bf151

Browse files
authored
Merge pull request #2792 from Sigma1912/patch-5
Update glcanon.py
2 parents a49f53a + 67a1e6c commit 15bf151

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/python/rs274/glcanon.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,8 @@ def select(self, x, y):
592592

593593
try:
594594
buffer = glRenderMode(GL_RENDER)
595-
except OverflowError:
596-
self.select_buffer_size *= 2
597-
continue
595+
except:
596+
buffer = []
598597
break
599598

600599
if buffer:

0 commit comments

Comments
 (0)