* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#define GLX_GLXEXT_PROTOTYPES
-
#include <GL/freeglut.h>
#include "freeglut_internal.h"
-
struct name_address_pair
{
const char *name;
{
/* Try GLUT functions first */
int i;
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutGetProcAddress" );
for( i = 0; glut_functions[ i ].name; i++ )
if( strcmp( glut_functions[ i ].name, procName ) == 0)
return glut_functions[ i ].address;