Skip to content

Commit

Permalink
give AutoLoader *some* chance of working
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 17, 2022
1 parent b7fc8e0 commit 3f7710d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenGL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6174,6 +6174,7 @@ sub AUTOLOAD {
goto &$AUTOLOAD;
}

require AutoLoader;
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD;
}
Expand All @@ -6182,6 +6183,7 @@ sub AUTOLOAD {
$val = constant($constname, @_ ? $_[0] : 0);
if (not defined $val) {
if ($! =~ /Invalid/) {
require AutoLoader;
$AutoLoader::AUTOLOAD = $AUTOLOAD;
goto &AutoLoader::AUTOLOAD;
}
Expand Down

0 comments on commit 3f7710d

Please sign in to comment.