X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffreeglut_init_x11.c;h=3010943c28114732c4e9288dffb6e0bad5411fb4;hb=fd07952449ad7b1fc6cfed569d23677f2b816e40;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