Moving an X11-specific function call to destroy a context to the X11-specific file
[freeglut] / src / mswin / freeglut_init_mswin.c
index 568170e..c7457de 100644 (file)
@@ -25,6 +25,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
  */\r
 \r
+#define FREEGLUT_BUILDING_LIB\r
 #include <GL/freeglut.h>\r
 #include "../Common/freeglut_internal.h"\r
 \r
@@ -157,7 +158,10 @@ void fgPlatformCloseDisplay ( void )
     timeEndPeriod ( 1 );\r
 }\r
 \r
-\r
+void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext )\r
+{\r
+       /* Do nothing -- this is required for X11 */\r
+}\r
 \r
 /*\r
  * Everything down to the end of the next two functions is copied from the X sources.\r
@@ -331,7 +335,6 @@ int XParseGeometry (
 \r
 /* -- PLATFORM-SPECIFIC INTERFACE FUNCTION -------------------------------------------------- */\r
 \r
-\r
 void (__cdecl *__glutExitFunc)( int return_value ) = NULL;\r
 \r
 void FGAPIENTRY __glutInitWithExit( int *pargc, char **argv, void (__cdecl *exit_function)(int) )\r