summaryrefslogtreecommitdiffstats
path: root/src/gui/egl/qegl.cpp
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-03-29 16:49:31 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-03-29 16:56:20 (GMT)
commit9e3304246acf5b58a2ce86eed082784da818a8f0 (patch)
tree87ca8e9321fe9ad310bdb36162ad27b95ae6cbaf /src/gui/egl/qegl.cpp
parent2be0e2ef4ec6702aaaebf7096fd527e2e161334a (diff)
downloadQt-9e3304246acf5b58a2ce86eed082784da818a8f0.zip
Qt-9e3304246acf5b58a2ce86eed082784da818a8f0.tar.gz
Qt-9e3304246acf5b58a2ce86eed082784da818a8f0.tar.bz2
Work-around Symbian 10.1's broken egl.h
In Symbian 10.1, egl.h itself includes eglext.h. This leads to EGL_KHR_image & EGL_KHR_image_base being defined, but not the actual function prototypes for eglCreateImageKHR/eglDestroyImageKHR. But, because the extension defines were set, Qt assumed (wrongly) that the EGL library would define eglCreateImageKHR. This left these functions undefined. The work-around is to check the define EGL_EGLEXT_PROTOTYPES and still define the function pointers if it isn't set. Reviewed-By: TrustMe
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 f36904d..498245c 100644
--- a/src/gui/egl/qegl.cpp
+++ b/src/gui/egl/qegl.cpp
@@ -528,7 +528,7 @@ QEglProperties QEglContext::configProperties() const
return QEglProperties(config());
}
-#if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base)
+#if (defined(EGL_KHR_image) || defined(EGL_KHR_image_base)) && !defined(EGL_EGLEXT_PROTOTYPES)
_eglCreateImageKHR eglCreateImageKHR = 0;
_eglDestroyImageKHR eglDestroyImageKHR = 0;
#endif