]> git.mxchange.org Git - flightgear.git/commitdiff
Fix glx shutdown to only apply on Unix & !Mac (but we should really add a proper...
authorJames Turner <zakalawe@mac.com>
Sat, 1 Oct 2011 09:05:01 +0000 (10:05 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 1 Oct 2011 09:05:01 +0000 (10:05 +0100)
src/GUI/new_gui.cxx

index ce4c7237d204c8d5a18d692a33e4929e62ea941d..b8834fdcaed7924a5ba4a7e7aaf64efe9fd91c50 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <Main/fg_props.hxx>
 
-#ifndef _WIN32
+#if defined(SG_UNIX) && !defined(SG_MAC) 
 #include "GL/glx.h"
 #endif
 
@@ -421,7 +421,7 @@ FGFontCache::FGFontCache() :
 
 FGFontCache::~FGFontCache()
 {
-#ifndef _WIN32
+#if defined(SG_UNIX) && !defined(SG_MAC) 
    // Ugly workaround for a crash on exit with multiple screens configured
    if (!glXGetCurrentContext())
       return;