Fix glx shutdown to only apply on Unix & !Mac (but we should really add a proper ifdef for GLX)
This commit is contained in:
parent
978a577ea2
commit
283b26114c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue