Moving the platform-specific FBConfig and device context variables into platform...
[freeglut] / src / Common / freeglut_state.c
index 434b41f..6630b6d 100644 (file)
@@ -66,7 +66,7 @@ static int fghGetConfig( int attribute )
 \r
   if( fgStructure.CurrentWindow )\r
       result = glXGetFBConfigAttrib( fgDisplay.Display,\r
-                                     *(fgStructure.CurrentWindow->Window.FBConfig),\r
+                                     *(fgStructure.CurrentWindow->Window.pContext.FBConfig),\r
                                      attribute,\r
                                      &returnValue );\r
 \r
@@ -125,7 +125,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
         else\r
         {\r
           const GLXFBConfig * fbconfig =\r
-                fgStructure.CurrentWindow->Window.FBConfig;\r
+                fgStructure.CurrentWindow->Window.pContext.FBConfig;\r
 \r
           XVisualInfo * visualInfo =\r
                 glXGetVisualFromFBConfig( fgDisplay.Display, *fbconfig );\r