summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-17 22:09:53 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-09-21 04:48:20 (GMT)
commit8d64d6be894116acec555cf751a6af288b76e3b8 (patch)
tree296733072dd17d9e17e08ba5821a2fa05b100085
parentaca137332374edb03c8f3b7ea5eba77877531c53 (diff)
downloadQt-8d64d6be894116acec555cf751a6af288b76e3b8.zip
Qt-8d64d6be894116acec555cf751a6af288b76e3b8.tar.gz
Qt-8d64d6be894116acec555cf751a6af288b76e3b8.tar.bz2
Fix compilation for systems with MBX PowerVR headers.
Reviewed-by: trustme (cherry picked from commit 9a712c48fb8047c3ed833db7d47382eb072711d6)
-rw-r--r--src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
index f51e882..5441084 100644
--- a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
+++ b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwswsegl.c
@@ -48,6 +48,13 @@
#define WSEGL_UNUSED(x) (void)x;
+// If the PVR2D version is not specified, then assume MBX-style headers.
+// If the version is defined, then we assume that we have SGX-style headers.
+#if !defined(PVR2D_REV_MAJOR)
+#define WSEGL_CAP_WINDOWS_USE_HW_SYNC WSEGL_CAP_WINDOWS_USE_MBX_SYNC
+#define WSEGL_CAP_PIXMAPS_USE_HW_SYNC WSEGL_CAP_PIXMAPS_USE_MBX_SYNC
+#endif
+
/* Capability information for the display */
static WSEGLCaps const wseglDisplayCaps[] = {
{WSEGL_CAP_WINDOWS_USE_HW_SYNC, 1},