Fixing the "glutGetProcAddress" snafu -- thank you, Evan Felix, for finding this
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1040 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
64953686de
commit
8174572da7
@ -29,8 +29,8 @@
|
||||
#include <GL/freeglut.h>
|
||||
#include "freeglut_internal.h"
|
||||
|
||||
extern SFG_Proc fghGetProcAddress( const char *procName );
|
||||
extern GLUTproc fgPlatformGlutGetProcAddress( const char *procName );
|
||||
extern SFG_Proc fgPlatformGetProcAddress( const char *procName );
|
||||
extern GLUTproc fgPlatformGetGLUTProcAddress( const char *procName );
|
||||
|
||||
static GLUTproc fghGetGLUTProcAddress( const char* procName )
|
||||
{
|
||||
@ -204,7 +204,7 @@ static GLUTproc fghGetGLUTProcAddress( const char* procName )
|
||||
|
||||
|
||||
#if TARGET_HOST_POSIX_X11
|
||||
static GLUTproc fghGetGLUTProcAddress( const char* procName )
|
||||
static GLUTproc fgPlatformGetGLUTProcAddress( const char* procName )
|
||||
{
|
||||
/* optimization: quick initial check */
|
||||
if( strncmp( procName, "glut", 4 ) != 0 )
|
||||
@ -223,13 +223,7 @@ static GLUTproc fghGetGLUTProcAddress( const char* procName )
|
||||
}
|
||||
|
||||
|
||||
GLUTproc fgPlatformGlutGetProcAddress( const char* procName )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SFG_Proc fghGetProcAddress( const char *procName )
|
||||
SFG_Proc fgPlatformGetProcAddress( const char *procName )
|
||||
{
|
||||
#if defined( GLX_ARB_get_proc_address )
|
||||
return (SFG_Proc)glXGetProcAddressARB( ( const GLubyte * )procName );
|
||||
@ -251,7 +245,7 @@ glutGetProcAddress( const char *procName )
|
||||
|
||||
/* Some GLUT functions are platform-specific: */
|
||||
if ( !p )
|
||||
p = fgPlatformGlutGetProcAddress( procName );
|
||||
p = fgPlatformGetGLUTProcAddress( procName );
|
||||
|
||||
return ( p != NULL ) ? p : fghGetProcAddress( procName );
|
||||
return ( p != NULL ) ? p : fgPlatformGetProcAddress( procName );
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <GL/freeglut.h>
|
||||
#include "../Common/freeglut_internal.h"
|
||||
|
||||
GLUTproc fgPlatformGlutGetProcAddress( const char* procName )
|
||||
GLUTproc fgPlatformGetGLUTProcAddress( const char* procName )
|
||||
{
|
||||
#if !defined(_WIN32_WCE)
|
||||
/* optimization: quick initial check */
|
||||
@ -50,7 +50,7 @@ GLUTproc fgPlatformGlutGetProcAddress( const char* procName )
|
||||
|
||||
|
||||
|
||||
SFG_Proc fghGetProcAddress( const char *procName )
|
||||
SFG_Proc fgPlatformGetProcAddress( const char *procName )
|
||||
{
|
||||
return (SFG_Proc)wglGetProcAddress( ( LPCSTR )procName );
|
||||
}
|
||||
|
Reference in New Issue
Block a user