#4880 - Initialization of OpenGL data used by GCodeViewer done on the first call of GCodeViewer::render()

This commit is contained in:
enricoturri1966 2020-10-17 13:04:58 +02:00
parent c2f5cef8a4
commit ce3fc31b48
3 changed files with 19 additions and 10 deletions

View file

@ -234,10 +234,8 @@ OpenGLManager::~OpenGLManager()
bool OpenGLManager::init_gl()
{
if (!m_gl_initialized)
{
if (glewInit() != GLEW_OK)
{
if (!m_gl_initialized) {
if (glewInit() != GLEW_OK) {
BOOST_LOG_TRIVIAL(error) << "Unable to init glew library";
return false;
}