mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
#4880 - Initialization of OpenGL data used by GCodeViewer done on the first call of GCodeViewer::render()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user