X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2FCommon%2Ffreeglut_state.c;h=6630b6d8101b36ae668610cf0fefd9f3e9ba4009;hb=9486b7d6a3bf0d00cc00ab98380e99810250aa84;hp=f3e6e8e732c48d3202172cbe07aade5abf861301;hpb=b7ffd3e60d961de87355b3027e589eb150337e60;p=freeglut diff --git a/src/Common/freeglut_state.c b/src/Common/freeglut_state.c index f3e6e8e..6630b6d 100644 --- a/src/Common/freeglut_state.c +++ b/src/Common/freeglut_state.c @@ -66,14 +66,14 @@ static int fghGetConfig( int attribute ) if( fgStructure.CurrentWindow ) result = glXGetFBConfigAttrib( fgDisplay.Display, - *(fgStructure.CurrentWindow->Window.FBConfig), + *(fgStructure.CurrentWindow->Window.pContext.FBConfig), attribute, &returnValue ); return returnValue; } -static int fgPlatformGlutGet ( GLenum eWhat ) +int fgPlatformGlutGet ( GLenum eWhat ) { int nsamples = 0; @@ -125,7 +125,7 @@ static int fgPlatformGlutGet ( GLenum eWhat ) else { const GLXFBConfig * fbconfig = - fgStructure.CurrentWindow->Window.FBConfig; + fgStructure.CurrentWindow->Window.pContext.FBConfig; XVisualInfo * visualInfo = glXGetVisualFromFBConfig( fgDisplay.Display, *fbconfig ); @@ -233,7 +233,7 @@ static int fgPlatformGlutGet ( GLenum eWhat ) } -static int fgPlatformGlutDeviceGet ( GLenum eWhat ) +int fgPlatformGlutDeviceGet ( GLenum eWhat ) { switch( eWhat ) {