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:
parent
dba198e576
commit
5ecfd32654
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue