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