Skip to content

Commit 264bcef

Browse files
fix character mapping error
1 parent 7f6718d commit 264bcef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codegen/createglapi.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ def __repr__(self):
116116

117117
DEFINE_CONST_MAP = '''
118118
ENUM_MAP = {}
119-
for ob in list(globals().values()):
120-
if repr(ob).startswith('GL_'):
119+
for var_name, ob in list(globals().items()):
120+
if var_name.startswith('GL_'):
121121
ENUM_MAP[int(ob)] = ob
122-
del ob
122+
del ob, var_name
123123
'''
124124

125125

0 commit comments

Comments
 (0)