summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2010-03-30 14:17:10 (GMT)
committerTom Cooksey <thomas.cooksey@nokia.com>2010-04-06 06:33:18 (GMT)
commitc147617c3f33872a412318d9cd660e5391229619 (patch)
treecbeaf1b1253fe379030738f20f34290b203bd964 /src
parentc272d672fc1863f9e3a201e93ad277c734749845 (diff)
downloadQt-c147617c3f33872a412318d9cd660e5391229619.zip
Qt-c147617c3f33872a412318d9cd660e5391229619.tar.gz
Qt-c147617c3f33872a412318d9cd660e5391229619.tar.bz2
Change the ifdef for resolving function ptrs to match declaration
Reviewed-By: TrustMe
Diffstat (limited to 'src')
-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 498245c..6f215cc 100644
--- a/src/gui/egl/qegl.cpp
+++ b/src/gui/egl/qegl.cpp
@@ -556,7 +556,7 @@ EGLDisplay QEgl::display()
}
// Resolve the egl extension function pointers:
-#if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base)
+#if (defined(EGL_KHR_image) || defined(EGL_KHR_image_base)) && !defined(EGL_EGLEXT_PROTOTYPES)
if (QEgl::hasExtension("EGL_KHR_image") || QEgl::hasExtension("EGL_KHR_image_base")) {
eglCreateImageKHR = (_eglCreateImageKHR) eglGetProcAddress("eglCreateImageKHR");
eglDestroyImageKHR = (_eglDestroyImageKHR) eglGetProcAddress("eglDestroyImageKHR");