From 3f963c6c1af5795e7e86b1d052d1945eddd0d100 Mon Sep 17 00:00:00 2001 From: fayjf Date: Sun, 5 Feb 2012 00:56:06 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/src/Common/freeglut_internal.h | 2 +- freeglut/freeglut/src/Common/freeglut_window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freeglut/freeglut/src/Common/freeglut_internal.h b/freeglut/freeglut/src/Common/freeglut_internal.h index 3870515..675fe84 100644 --- a/freeglut/freeglut/src/Common/freeglut_internal.h +++ b/freeglut/freeglut/src/Common/freeglut_internal.h @@ -1119,7 +1119,7 @@ int fgHintPresent(Window window, Atom property, Atom hint); #endif -SFG_Proc fghGetProcAddress( const char *procName ); +SFG_Proc fgPlatformGetProcAddress( const char *procName ); #endif /* FREEGLUT_INTERNAL_H */ diff --git a/freeglut/freeglut/src/Common/freeglut_window.c b/freeglut/freeglut/src/Common/freeglut_window.c index cda8115..fb17ea6 100644 --- a/freeglut/freeglut/src/Common/freeglut_window.c +++ b/freeglut/freeglut/src/Common/freeglut_window.c @@ -406,7 +406,7 @@ static GLXContext fghCreateNewContext( SFG_Window* window ) /* new context creation */ 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 */ if ( !createContextAttribs && !fghIsLegacyContextRequested() ) {