diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-11-06 23:16:02 -0800 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2018-11-07 14:25:00 +0000 |
commit | d05f5590891cc0d107473e1bf2e36523678d0114 (patch) | |
tree | 6831b10e4828f7a87020c9a10289ff17720afaa5 /recipes-graphics/userland/files/0015-EGL-glplatform.h-define-EGL_CAST.patch | |
parent | f7a2726cdf741e71e1bab81b46ba1e3e20f4b1f7 (diff) | |
download | meta-raspberrypi-d05f5590891cc0d107473e1bf2e36523678d0114.tar.gz |
userland-nogl: Add recipe which does not include GL libraries
This is needed when mesa is providing these libraries especially when
using vc4graphics
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-graphics/userland/files/0015-EGL-glplatform.h-define-EGL_CAST.patch')
-rw-r--r-- | recipes-graphics/userland/files/0015-EGL-glplatform.h-define-EGL_CAST.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-graphics/userland/files/0015-EGL-glplatform.h-define-EGL_CAST.patch b/recipes-graphics/userland/files/0015-EGL-glplatform.h-define-EGL_CAST.patch new file mode 100644 index 0000000..605d0c0 --- /dev/null +++ b/recipes-graphics/userland/files/0015-EGL-glplatform.h-define-EGL_CAST.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a2182e5437a6664cdb0f3330f6cbee873b6f975a Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrea Galbusera <gizero@gmail.com> | ||
3 | Date: Fri, 14 Jul 2017 09:52:54 +0200 | ||
4 | Subject: [PATCH 15/16] EGL/glplatform.h: define EGL_CAST | ||
5 | |||
6 | C++ / C typecast macros for special EGL handle values: used by libepoxy code | ||
7 | The definition comes from the updated version of this header in mesa. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | --- | ||
11 | interface/khronos/include/EGL/eglplatform.h | 7 +++++++ | ||
12 | 1 file changed, 7 insertions(+) | ||
13 | |||
14 | diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h | ||
15 | index 1f7c930..c39d425 100644 | ||
16 | --- a/interface/khronos/include/EGL/eglplatform.h | ||
17 | +++ b/interface/khronos/include/EGL/eglplatform.h | ||
18 | @@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i | ||
19 | #include "interface/khronos/common/khrn_client_mangle.h" | ||
20 | #endif | ||
21 | |||
22 | +/* C++ / C typecast macros for special EGL handle values */ | ||
23 | +#if defined(__cplusplus) | ||
24 | +#define EGL_CAST(type, value) (static_cast<type>(value)) | ||
25 | +#else | ||
26 | +#define EGL_CAST(type, value) ((type) (value)) | ||
27 | +#endif | ||
28 | + | ||
29 | #endif /* __eglplatform_h */ | ||
30 | -- | ||
31 | 2.16.1 | ||
32 | |||