From 04e7b2f41541bb6bf6e944bbe596c3b582c6daf7 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Fri, 12 Sep 2014 16:26:08 +0200 Subject: Fix the build for embedded android Change-Id: I1edd16e6875198d7480897e7b2e2fbf68b245883 Reviewed-by: Jocelyn Turcotte --- src/core/surface_factory_qt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/surface_factory_qt.cpp') diff --git a/src/core/surface_factory_qt.cpp b/src/core/surface_factory_qt.cpp index ca48da46e..85b9eb799 100644 --- a/src/core/surface_factory_qt.cpp +++ b/src/core/surface_factory_qt.cpp @@ -36,6 +36,7 @@ #include "surface_factory_qt.h" +#include "gl_context_qt.h" #include "type_conversion.h" #include "base/files/file_path.h" @@ -95,7 +96,7 @@ bool SurfaceFactoryQt::LoadEGLGLES2Bindings(AddGLLibraryCallback add_gl_library, intptr_t SurfaceFactoryQt::GetNativeDisplay() { - static void *display = qApp->platformNativeInterface()->nativeResourceForIntegration(QByteArrayLiteral("nativedisplay")); + static void *display = GLContextHelper::getNativeDisplay(); if (display) return reinterpret_cast(display); -- cgit v1.2.3