\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
}\r
\r
\r
+static Bool fghWindowIsVisible( Display *display, XEvent *event, XPointer arg)\r
+{\r
+ Window window = (Window)arg;\r
+ return (event->type == MapNotify) && (event->xmap.window == window);\r
+}\r
+\r
+\r
/*\r
* Opens a window. Requires a SFG_Window object created and attached\r
* to the freeglut structure. OpenGL context is created here.\r
}\r
\r
\r
-static Bool fghWindowIsVisible( Display *display, XEvent *event, XPointer arg)\r
-{\r
- Window window = (Window)arg;\r
- return (event->type == MapNotify) && (event->xmap.window == window);\r
-}\r
-\r
-\r
\r
\r
/*\r