Fixing call to "fghGetProcAddress" by giving the new name of the function
[freeglut] / src / x11 / freeglut_window_x11.c
index cf48711..f4d50e1 100644 (file)
@@ -30,7 +30,7 @@
 #include <GL/freeglut.h>\r
 #include <limits.h>  /* LONG_MAX */\r
 #include <unistd.h>  /* usleep */\r
-#include "freeglut_internal.h"\r
+#include "../Common/freeglut_internal.h"\r
 \r
 /* pushing attribute/value pairs into an array */\r
 #define ATTRIB(a) attributes[where++]=(a)\r
@@ -86,7 +86,7 @@
  * Chooses a visual basing on the current display mode settings\r
  */\r
 \r
-GLXFBConfig* fgChooseFBConfig( int *numcfgs )\r
+GLXFBConfig* fgPlatformChooseFBConfig( int *numcfgs )\r
 {\r
   GLboolean wantIndexedMode = GL_FALSE;\r
   int attributes[ 100 ];\r
@@ -304,7 +304,7 @@ static GLXContext fghCreateNewContext( SFG_Window* window )
 \r
   /* new context creation */\r
   int attributes[9];\r
-  CreateContextAttribsProc createContextAttribs = (CreateContextAttribsProc) fghGetProcAddress( "glXCreateContextAttribsARB" );\r
+  CreateContextAttribsProc createContextAttribs = (CreateContextAttribsProc) fgPlatformGetProcAddress( "glXCreateContextAttribsARB" );\r
  \r
   /* glXCreateContextAttribsARB not found, yet the user has requested the new context creation */\r
   if ( !createContextAttribs && !fghIsLegacyContextRequested() ) {\r
@@ -451,7 +451,7 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
     if( window->IsMenu && ( ! fgStructure.MenuContext ) )\r
         fgState.DisplayMode = GLUT_DOUBLE | GLUT_RGB ;\r
 \r
-    window->Window.pContext.FBConfig = fgChooseFBConfig( &num_FBConfigs );\r
+    window->Window.pContext.FBConfig = fgPlatformChooseFBConfig( &num_FBConfigs );\r
 \r
     if( window->IsMenu && ( ! fgStructure.MenuContext ) )\r
         fgState.DisplayMode = current_DisplayMode ;\r
@@ -459,21 +459,21 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title,
     if( ! window->Window.pContext.FBConfig )\r
     {\r
         /*\r
-         * The "fgChooseFBConfig" returned a null meaning that the visual\r
+         * The "fgPlatformChooseFBConfig" returned a null meaning that the visual\r
          * context is not available.\r
          * Try a couple of variations to see if they will work.\r
          */\r
         if( !( fgState.DisplayMode & GLUT_DOUBLE ) )\r
         {\r
             fgState.DisplayMode |= GLUT_DOUBLE ;\r
-            window->Window.pContext.FBConfig = fgChooseFBConfig( &num_FBConfigs );\r
+            window->Window.pContext.FBConfig = fgPlatformChooseFBConfig( &num_FBConfigs );\r
             fgState.DisplayMode &= ~GLUT_DOUBLE;\r
         }\r
 \r
         if( fgState.DisplayMode & GLUT_MULTISAMPLE )\r
         {\r
             fgState.DisplayMode &= ~GLUT_MULTISAMPLE ;\r
-            window->Window.pContext.FBConfig = fgChooseFBConfig( &num_FBConfigs );\r
+            window->Window.pContext.FBConfig = fgPlatformChooseFBConfig( &num_FBConfigs );\r
             fgState.DisplayMode |= GLUT_MULTISAMPLE;\r
         }\r
     }\r