Fixing the "fghGetProcAddress" bug also noted by Evan Felix in e-mail dated 2/4/12 at 1:16 PM

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1050 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2012-02-05 00:56:06 +00:00
parent fb55e0df4f
commit 3f963c6c1a
2 changed files with 2 additions and 2 deletions

View File

@ -1119,7 +1119,7 @@ int fgHintPresent(Window window, Atom property, Atom hint);
#endif #endif
SFG_Proc fghGetProcAddress( const char *procName ); SFG_Proc fgPlatformGetProcAddress( const char *procName );
#endif /* FREEGLUT_INTERNAL_H */ #endif /* FREEGLUT_INTERNAL_H */

View File

@ -406,7 +406,7 @@ static GLXContext fghCreateNewContext( SFG_Window* window )
/* new context creation */ /* new context creation */
int attributes[9]; int attributes[9];
CreateContextAttribsProc createContextAttribs = (CreateContextAttribsProc) fghGetProcAddress( "glXCreateContextAttribsARB" ); CreateContextAttribsProc createContextAttribs = (CreateContextAttribsProc) fgPlatformGetProcAddress( "glXCreateContextAttribsARB" );
/* glXCreateContextAttribsARB not found, yet the user has requested the new context creation */ /* glXCreateContextAttribsARB not found, yet the user has requested the new context creation */
if ( !createContextAttribs && !fghIsLegacyContextRequested() ) { if ( !createContextAttribs && !fghIsLegacyContextRequested() ) {