Moving an X11-specific function call to destroy a context to the X11-specific file
[freeglut] / src / x11 / freeglut_init_x11.c
index 8574ce1..3010943 100644 (file)
@@ -265,3 +265,9 @@ void fgPlatformCloseDisplay ( void )
     XCloseDisplay( fgDisplay.pDisplay.Display );\r
 }\r
 \r
+\r
+void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext )\r
+{\r
+    /* Note that the MVisualInfo is not owned by the MenuContext! */\r
+    glXDestroyContext( pDisplay.Display, MContext );\r
+}
\ No newline at end of file