Mesa (master): egl: use EGL_CAST() macro in eglmesaext.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 19 22:00:58 UTC 2019


Module: Mesa
Branch: master
Commit: 99788de90956112936fd883c0ae4e351f6a7e2da
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=99788de90956112936fd883c0ae4e351f6a7e2da

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Sat Nov 16 17:51:27 2019 +0000

egl: use EGL_CAST() macro in eglmesaext.h

Allows eglmesaext.h to be used in C++ code.

This aligns this file with the rest of EGL.

Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-By: Tapani Pälli <tapani.palli at intel.com>

---

 include/EGL/eglmesaext.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/EGL/eglmesaext.h b/include/EGL/eglmesaext.h
index f4332b279f8..fe5c7d91658 100644
--- a/include/EGL/eglmesaext.h
+++ b/include/EGL/eglmesaext.h
@@ -76,7 +76,7 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EG
 
 #ifndef EGL_MESA_configless_context
 #define EGL_MESA_configless_context 1
-#define EGL_NO_CONFIG_MESA			((EGLConfig)0)
+#define EGL_NO_CONFIG_MESA			EGL_CAST(EGLConfig,0)
 #endif
 
 #ifndef EGL_MESA_drm_image_formats




More information about the mesa-commit mailing list