Skip to content

Commit 5534b39

Browse files
Fix gl version using strings.
This was causing 'is_legacy' and 'is_core' to fail as they expected ints.
1 parent c99b642 commit 5534b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygly/gl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _extract_version(version):
5959
# there can be a 3rd version
6060
# split full stops and spaces and take the first 2 results
6161
versions = re.split( r'[\.\s\-]', version )
62-
return versions[ 0 ], versions[ 1 ]
62+
return int(versions[0]), int(versions[1])
6363

6464
def gl_version():
6565
"""Returns the current OpenGL version string as specified by the

0 commit comments

Comments
 (0)