Skip to content

Commit

Permalink
FIX Add on for the fix to #6 to make force_extension functions bool()…
Browse files Browse the repository at this point in the history
… work
  • Loading branch information
mcfletch committed Dec 29, 2019
1 parent 2487c21 commit e04bee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenGL/platform/baseplatform.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def __init__(
resolved = False
def __nonzero__( self ):
"""Make this object appear to be NULL"""
if self.extension and not self.resolved:
if (not self.resolved) and (self.extension or self.force_extension):
self.load()
return self.resolved
__bool__ = __nonzero__
Expand Down

0 comments on commit e04bee4

Please sign in to comment.