diff --git a/toonz/sources/stdfx/shadingcontext.cpp b/toonz/sources/stdfx/shadingcontext.cpp
index f298e3c..ff8ae0d 100644
--- a/toonz/sources/stdfx/shadingcontext.cpp
+++ b/toonz/sources/stdfx/shadingcontext.cpp
@@ -91,7 +91,7 @@ QSurfaceFormat ShadingContext::Imp::format() {
 
 #ifdef MACOSX
   fmt.setVersion(3, 2);
-  fmt.setProfile(QGLFormat::CompatibilityProfile);
+  fmt.setProfile(QSurfaceFormat::CompatibilityProfile);
 #endif
 
   return fmt;