diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index b6b7035e7568..8c404b82902e 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -3713,7 +3713,7 @@ nsWindow::Create(nsIWidget* aParent, if (Preferences::GetBool("mozilla.widget.use-argb-visuals", false)) useAlphaVisual = true; -#ifdef GL_PROVIDER_GLX +#ifdef MOZ_X11 // Ensure gfxPlatform is initialized, since that is what initializes // gfxVars, used below. Unused << gfxPlatform::GetPlatform(); @@ -3740,7 +3740,7 @@ nsWindow::Create(nsIWidget* aParent, visualId)); } } else -#endif // GL_PROVIDER_GLX +#endif // MOZ_X11 { if (useAlphaVisual) { GdkScreen *screen = gtk_widget_get_screen(mShell);