mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
#4880 - Initialization of OpenGL data used by GCodeViewer done on the first call of GCodeViewer::render()
This commit is contained in:
parent
c2f5cef8a4
commit
ce3fc31b48
3 changed files with 19 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue