From f16baae9d8bda6b1a3154ce3718d833d12994fd2 Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Tue, 29 Jul 2014 16:32:47 +0200 Subject: Add EglDisplay case to nativeResourceForContext on eglfs This is needed to make it possible to use the same interface for retrieving the EGLDisplay on Windows and EGLFS, thus get rid of cluttering ifdefs. Change-Id: I37b848b1017eacbf8a29627cd157b74e22e5f40c Reviewed-by: Michael Bruning Reviewed-by: Laszlo Agocs --- src/platformsupport/eglconvenience/qeglplatformintegration.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/platformsupport') diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration.cpp b/src/platformsupport/eglconvenience/qeglplatformintegration.cpp index 1b63d16195..67064f63b5 100644 --- a/src/platformsupport/eglconvenience/qeglplatformintegration.cpp +++ b/src/platformsupport/eglconvenience/qeglplatformintegration.cpp @@ -291,6 +291,10 @@ void *QEGLPlatformIntegration::nativeResourceForContext(const QByteArray &resour if (context->handle()) result = static_cast(context->handle())->eglConfig(); break; + case EglDisplay: + if (context->handle()) + result = static_cast(context->handle())->eglDisplay(); + break; default: break; } -- cgit v1.2.3