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:
ikits 2003-08-27 19:54:41 +00:00
parent ba227e5ef5
commit 644fa321b4

View File

@ -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;";
}
#---------------------------------------------------------------------------------------