Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix glutInit error on Windows with FreeGLUT

Tact Yoshidafa951f96df2f
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp
index 054717f4f..cf64750c4 100644
--- a/toonz/sources/toonz/main.cpp
+++ b/toonz/sources/toonz/main.cpp
@@ -447,11 +447,7 @@ int main(int argc, char *argv[]) {
fmt.setStencil(true);
QGLFormat::setDefaultFormat(fmt);
-// seems this function should be called at all systems
-// pheraps in some GLUT-implementations initalization is mere formality
-#if defined(LINUX) || (defined(_WIN32) && defined(__GNUC__))
glutInit(&argc, argv);
-#endif
splash.showMessage(offsetStr + "Initializing Toonz environment ...",
Qt::AlignCenter, Qt::white);