OpenGl fix: call enableGlDebug( true ) only in Kicad debug build, and only on Linux

(Because we have crashes on OSX and some Window installs)
This commit is contained in:
jean-pierre charras 2018-02-10 11:57:22 +01:00
parent dba198e576
commit 5ecfd32654
1 changed files with 3 additions and 1 deletions

View File

@ -1774,8 +1774,10 @@ void OPENGL_GAL::init()
GLenum err = glewInit(); GLenum err = glewInit();
#ifdef __WXDEBUG__ #if defined (__LINUX__) // calling enableGlDebug crashes opengl on some OS (OSX and some Windows)
#ifdef DEBUG
enableGlDebug( true ); enableGlDebug( true );
#endif
#endif #endif
try try