summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/egl/qegl.cpp2
-rw-r--r--src/gui/egl/qegl_p.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp
index 3417781..9a552cf 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)
_eglCreateImageKHR eglCreateImageKHR = 0;
_eglDestroyImageKHR eglDestroyImageKHR = 0;
#endif
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index b570329..c659796 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -110,7 +110,7 @@ QT_BEGIN_NAMESPACE
#define EGLAPIENTRY
#endif
-#if !defined(EGL_KHR_image) || !defined(EGL_KHR_image_base)
+#if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base)
typedef void *EGLImageKHR;
#define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
@@ -123,9 +123,9 @@ typedef EGLBoolean (EGLAPIENTRY *_eglDestroyImageKHR)(EGLDisplay, EGLImageKHR);
extern Q_GUI_EXPORT _eglCreateImageKHR eglCreateImageKHR;
extern Q_GUI_EXPORT _eglDestroyImageKHR eglDestroyImageKHR;
-#endif // !defined(EGL_KHR_image) || !defined(EGL_KHR_image_base)
+#endif // !defined(EGL_KHR_image) && !defined(EGL_KHR_image_base)
-#if !defined(EGL_KHR_image) || !defined(EGL_KHR_image_pixmap)
+#if !defined(EGL_KHR_image) && !defined(EGL_KHR_image_pixmap)
#define EGL_NATIVE_PIXMAP_KHR 0x30B0
#endif