diff options
author | Andras Becsi <andras.becsi@digia.com> | 2014-07-29 16:32:47 +0200 |
---|---|---|
committer | Andras Becsi <andras.becsi@digia.com> | 2014-07-30 22:31:09 +0200 |
commit | f16baae9d8bda6b1a3154ce3718d833d12994fd2 (patch) | |
tree | 30b9d4b54fd519f64189fc179c90acaa96893b2f /src/platformsupport | |
parent | 00b63b18ce62c6932a0b0fe566239649162be0d4 (diff) |
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 <michael.bruning@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/platformsupport')
-rw-r--r-- | src/platformsupport/eglconvenience/qeglplatformintegration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<QEGLPlatformContext *>(context->handle())->eglConfig(); break; + case EglDisplay: + if (context->handle()) + result = static_cast<QEGLPlatformContext *>(context->handle())->eglDisplay(); + break; default: break; } |