forked from agherzan/meta-raspberrypi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
userland: Add missing EGL_CAST defines
Needed by libepoxy Signed-off-by: Andrea Galbusera <gizero@gmail.com>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
recipes-graphics/userland/userland/0015-EGL-glplatform.h-define-EGL_CAST.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 382e3b16cbcc09d825540d5bd3e45a2fca4484fe Mon Sep 17 00:00:00 2001 | ||
From: Andrea Galbusera <gizero@gmail.com> | ||
Date: Fri, 14 Jul 2017 09:52:54 +0200 | ||
Subject: [PATCH] EGL/glplatform.h: define EGL_CAST | ||
|
||
C++ / C typecast macros for special EGL handle values: used by libepoxy code | ||
The definition comes from the updated version of this header in mesa. | ||
|
||
Upstream-Status: Pending | ||
--- | ||
interface/khronos/include/EGL/eglplatform.h | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h | ||
index 1f7c930..c39d425 100644 | ||
--- a/interface/khronos/include/EGL/eglplatform.h | ||
+++ b/interface/khronos/include/EGL/eglplatform.h | ||
@@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i | ||
#include "interface/khronos/common/khrn_client_mangle.h" | ||
#endif | ||
|
||
+/* C++ / C typecast macros for special EGL handle values */ | ||
+#if defined(__cplusplus) | ||
+#define EGL_CAST(type, value) (static_cast<type>(value)) | ||
+#else | ||
+#define EGL_CAST(type, value) ((type) (value)) | ||
+#endif | ||
+ | ||
#endif /* __eglplatform_h */ | ||
-- | ||
2.7.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters