1
0
Fork 0

Fix glx shutdown to only apply on Unix & !Mac (but we should really add a proper ifdef for GLX)

This commit is contained in:
James Turner 2011-10-01 10:05:01 +01:00
parent 978a577ea2
commit 283b26114c

View 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;