summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl_x11.cpp
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-02-13 12:39:49 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-02-13 12:39:49 (GMT)
commit6bee2674184d4c808cebb46e86b4faad6fc1e94e (patch)
tree804f9e85e072238d1b8c93ccb816bcea61e5f601 /src/gui/egl/qegl_x11.cpp
parent49aa3d3a6bfd8befec2a00ff6166fe0e9fcf684d (diff)
downloadQt-6bee2674184d4c808cebb46e86b4faad6fc1e94e.zip
Qt-6bee2674184d4c808cebb46e86b4faad6fc1e94e.tar.gz
Qt-6bee2674184d4c808cebb46e86b4faad6fc1e94e.tar.bz2
Fixed compile for maemo6.
Explicit EGLNativeDisplayType casts are needed since maemo6 defines EGL_DEFAULT_DISPLAY as ((void*)0).
Diffstat (limited to 'src/gui/egl/qegl_x11.cpp')
-rw-r--r--src/gui/egl/qegl_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/egl/qegl_x11.cpp b/src/gui/egl/qegl_x11.cpp
index ef9ff78..634ff13 100644
--- a/src/gui/egl/qegl_x11.cpp
+++ b/src/gui/egl/qegl_x11.cpp
@@ -98,7 +98,7 @@ EGLNativeDisplayType QEglContext::nativeDisplay()
Display *xdpy = QX11Info::display();
if (!xdpy) {
qWarning("QEglContext::getDisplay(): X11 display is not open");
- return EGL_DEFAULT_DISPLAY;
+ return EGLNativeDisplayType(EGL_DEFAULT_DISPLAY);
}
return EGLNativeDisplayType(xdpy);
}