Removing an extraneous "#if TARGET_HOST"
[freeglut] / src / x11 / freeglut_init_x11.c
index 5c3dc4d..3010943 100644 (file)
@@ -29,7 +29,7 @@
 #define FREEGLUT_BUILDING_LIB\r
 #include <limits.h>  /* LONG_MAX */\r
 #include <GL/freeglut.h>\r
-#include "freeglut_internal.h"\r
+#include "../Common/freeglut_internal.h"\r
 \r
 /* Return the atom associated with "name". */\r
 static Atom fghGetAtom(const char * name)\r
@@ -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