summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/linux-rasp-pi-g++
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/devices/linux-rasp-pi-g++')
-rw-r--r--mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp b/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp
index 2cbd297a90..f17af55947 100644
--- a/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp
+++ b/mkspecs/devices/linux-rasp-pi-g++/qeglfs_hooks.cpp
@@ -140,4 +140,17 @@ void QEglFSHooks::destroyNativeWindow(EGLNativeWindowType window)
delete eglWindow;
}
+bool QEglFSHooks::hasCapability(QPlatformIntegration::Capability cap) const
+{
+ switch (cap) {
+ case QPlatformIntegration::ThreadedPixmaps:
+ case QPlatformIntegration::OpenGL:
+ case QPlatformIntegration::ThreadedOpenGL:
+ case QPlatformIntegration::BufferQueueingOpenGL:
+ return true;
+ default:
+ return false;
+ }
+}
+
QEglFSHooks platform_hooks;