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