Bug 1466775 - [Wayland] Configure WebRender on X11, r=jhorak

MozReview-Commit-ID: ChXp7m5XeOI

--HG--
extra : rebase_source : 3b00ba11aad25be75e33138fefa4285b1b19ae21
This commit is contained in:
Martin Stransky 2018-06-05 11:35:45 +02:00
Родитель ac099e5073
Коммит 5753c81b38
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);