summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-09-12 23:44:06 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-09-12 23:44:43 (GMT)
commita39285f6f5c3355d48810851a7215b951f1aaa4c (patch)
tree4c18bf96954b9f6f155b9554fc50c9eb44a04894 /src/gui/egl/qegl.cpp
parent2b527006a3e9147a447a08d78004e20a7ac3d17c (diff)
downloadQt-a39285f6f5c3355d48810851a7215b951f1aaa4c.zip
Qt-a39285f6f5c3355d48810851a7215b951f1aaa4c.tar.gz
Qt-a39285f6f5c3355d48810851a7215b951f1aaa4c.tar.bz2
Fix compilation of QEgl with EGL 1.1 and older.
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/gui/egl/qegl.cpp')
-rw-r--r--src/gui/egl/qegl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp
index 605b1e6..af3b79a 100644
--- a/src/gui/egl/qegl.cpp
+++ b/src/gui/egl/qegl.cpp
@@ -259,7 +259,7 @@ EGLConfig QEgl::defaultConfig(int devType, API api, ConfigOptions options)
// Add paint engine requirements
if (api == OpenVG) {
-#ifndef QVG_SCISSOR_CLIP
+#if !defined(QVG_SCISSOR_CLIP) && defined(EGL_ALPHA_MASK_SIZE)
configAttribs.setValue(EGL_ALPHA_MASK_SIZE, 1);
#endif
} else {