summaryrefslogtreecommitdiff
path: root/src/gui/opengl/qopenglfunctions.cpp
diff options
context:
space:
mode:
authorRolland Dudemaine <rolland@ghs.com>2016-03-11 15:05:56 +0100
committerRolland Dudemaine <rolland@ghs.com>2016-04-13 08:14:40 +0000
commit9b35b0e8dc6069aed563d0aca61c973eb307d772 (patch)
tree91424c7b5d705677945b7a2e408c979df389477d /src/gui/opengl/qopenglfunctions.cpp
parent2687eb5a8c1495413dabb38750f0b6e8d93771e2 (diff)
downloadqtbase-9b35b0e8dc6069aed563d0aca61c973eb307d772.tar.gz
Make the eglfs and eglfs-viv detection and build work for INTEGRITY.
The majority of these changes is about #ifdef-ing the Linux-specific use of /dev/fb0. The display handle is also acquired using fbGetDisplay(), which is equivalent to fbGetDisplayByIndex(0) but is also portable. Change-Id: I6f460edc9c06ae7461a6aab2a816ac6f645208c4 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/gui/opengl/qopenglfunctions.cpp')
-rw-r--r--src/gui/opengl/qopenglfunctions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp
index ea5a8e9252..e4e7c6d1b5 100644
--- a/src/gui/opengl/qopenglfunctions.cpp
+++ b/src/gui/opengl/qopenglfunctions.cpp
@@ -47,6 +47,10 @@
#include <qpa/qplatformintegration.h>
#include <QtCore/qloggingcategory.h>
+#ifdef Q_OS_INTEGRITY
+#include <EGL/egl.h>
+#endif
+
#ifndef GL_FRAMEBUFFER_SRGB_CAPABLE_EXT
#define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA
#endif