X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fx11%2Ffreeglut_init_x11.c;h=3010943c28114732c4e9288dffb6e0bad5411fb4;hb=5a3e5c7b7749ca1b3de57591c90d6424d1dd4b86;hp=8574ce13a70a2f623b73f7f82a3df35bc467144f;hpb=d685109e7dc055afb54e955e937eef7fb2ed4d1d;p=freeglut diff --git a/src/x11/freeglut_init_x11.c b/src/x11/freeglut_init_x11.c index 8574ce1..3010943 100644 --- a/src/x11/freeglut_init_x11.c +++ b/src/x11/freeglut_init_x11.c @@ -265,3 +265,9 @@ void fgPlatformCloseDisplay ( void ) XCloseDisplay( fgDisplay.pDisplay.Display ); } + +void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext ) +{ + /* Note that the MVisualInfo is not owned by the MenuContext! */ + glXDestroyContext( pDisplay.Display, MContext ); +} \ No newline at end of file