summaryrefslogtreecommitdiffstats
path: root/src/opengl/opengl.pro
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-04-13 12:51:51 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-14 12:51:50 (GMT)
commitb331a74b8fd71ba803e2cf2a9e0c49e1d3538f40 (patch)
tree84937c7c4908cfc444fe6645a9373248c69fc946 /src/opengl/opengl.pro
parent9ad274406a0f893f9a595aac7031deac2b25afbd (diff)
downloadQt-b331a74b8fd71ba803e2cf2a9e0c49e1d3538f40.zip
Qt-b331a74b8fd71ba803e2cf2a9e0c49e1d3538f40.tar.gz
Qt-b331a74b8fd71ba803e2cf2a9e0c49e1d3538f40.tar.bz2
Support building with desktop OpenGL managed via EGL
This mostly replaces lots of QT_OPENGL_ES defines with QT_NO_EGL instead. It also switches off EGL auto-detection by default. This is to make sure we default to using GLX on systems with both EGL and desktop OpenGL. If -opengl es1|es2 or -openvg is specified, then EGL auto-detection is switched back on (as a requirement. If configure auto-detects OpenGL ES it also switches on EGL auto-detection, but failue then just disables both EGL & OpenGL. As a side effect, this patch also fixes building Qt when both EGL and glx are avaliable, as they are in Mesa >= 7.8.0. Reviewed-by: Trond Task-number: QTBUG-9691
Diffstat (limited to 'src/opengl/opengl.pro')
-rw-r--r--src/opengl/opengl.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro
index 9473343..15795d2 100644
--- a/src/opengl/opengl.pro
+++ b/src/opengl/opengl.pro
@@ -77,7 +77,7 @@ SOURCES += qgl.cpp \
}
x11 {
- contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
+ contains(QT_CONFIG, egl) {
SOURCES += qgl_x11egl.cpp \
qglpixelbuffer_egl.cpp \
qgl_egl.cpp \