summaryrefslogtreecommitdiffstats
path: root/src/core/core_module.pro
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-04-30 18:16:26 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-12 19:11:32 +0200
commit43db107bcc29a54044b020544e3874048687d8e7 (patch)
treee6d5e199ea34c4f6a9325a1d0e27372883d48268 /src/core/core_module.pro
parent85af7572d7326b0580970e8871b3f540b04fd484 (diff)
Check properly for EGL extensions before using them
Always check both EGL_EXTENSIONS and the validity of the returned function pointers. Otherwise bad things happen on EGL implementations that do not have the extension. Fix also linking to EGL. CONFIG+=egl has to be in core_module.pro too. Change-Id: I5e3dc54675d83123fc79e2d27a7af19fcc7f936a Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/core/core_module.pro')
-rw-r--r--src/core/core_module.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core_module.pro b/src/core/core_module.pro
index ef9721a11..7aad0de92 100644
--- a/src/core/core_module.pro
+++ b/src/core/core_module.pro
@@ -19,3 +19,5 @@ load(qt_module)
# Using -Wl,-Bsymbolic-functions seems to confuse the dynamic linker
# and doesn't let Chromium get access to libc symbols through dlsym.
CONFIG -= bsymbolic_functions
+
+contains(QT_CONFIG, egl): CONFIG += egl