From 5ecfd326545c0bc34c853174e4de371a8bc0ac82 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 10 Feb 2018 11:57:22 +0100 Subject: [PATCH] OpenGl fix: call enableGlDebug( true ) only in Kicad debug build, and only on Linux (Because we have crashes on OSX and some Window installs) --- common/gal/opengl/opengl_gal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index f8a44ba6cb..04746e80c7 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -1774,8 +1774,10 @@ void OPENGL_GAL::init() GLenum err = glewInit(); -#ifdef __WXDEBUG__ +#if defined (__LINUX__) // calling enableGlDebug crashes opengl on some OS (OSX and some Windows) +#ifdef DEBUG enableGlDebug( true ); +#endif #endif try