mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-29 01:01:56 +00:00
changed order of boolean propagation to make sure partial extensions are initialized properly
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@116 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
ba227e5ef5
commit
644fa321b4
@ -24,7 +24,7 @@ sub make_pfn_def($%)
|
||||
sub make_pfn_def_init($%)
|
||||
{
|
||||
my $name = prefixname($_[0]);
|
||||
return " r = r || (" . $name . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress(\"" . $_[0] . "\")) == NULL;";
|
||||
return " r = ((" . $name . " = (PFN" . (uc $_[0]) . "PROC)glewGetProcAddress(\"" . $_[0] . "\")) == NULL) || r;";
|
||||
}
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user