X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffreeglut_init_x11.c;h=3010943c28114732c4e9288dffb6e0bad5411fb4;hb=5a3e5c7b7749ca1b3de57591c90d6424d1dd4b86;hp=5c3dc4d1520c0e2bda76b59568262444e69b8714;hpb=76abafb9109bfc14c93c9f86574b7a1ce1dae957;p=freeglut diff --git a/src/x11/freeglut_init_x11.c b/src/x11/freeglut_init_x11.c index 5c3dc4d..3010943 100644 --- a/src/x11/freeglut_init_x11.c +++ b/src/x11/freeglut_init_x11.c @@ -29,7 +29,7 @@ #define FREEGLUT_BUILDING_LIB #include /* LONG_MAX */ #include -#include "freeglut_internal.h" +#include "../Common/freeglut_internal.h" /* Return the atom associated with "name". */ static Atom fghGetAtom(const char * name) @@ -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