diff options
| -rw-r--r-- | meta/recipes-graphics/kmscube/kmscube/0001-texturator-Use-correct-GL-extension-header.patch | 33 | ||||
| -rw-r--r-- | meta/recipes-graphics/kmscube/kmscube_git.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-graphics/kmscube/kmscube/0001-texturator-Use-correct-GL-extension-header.patch b/meta/recipes-graphics/kmscube/kmscube/0001-texturator-Use-correct-GL-extension-header.patch new file mode 100644 index 0000000000..5965782de7 --- /dev/null +++ b/meta/recipes-graphics/kmscube/kmscube/0001-texturator-Use-correct-GL-extension-header.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 2b74e0e32235f6ab2e3e42d53dea985a7ba6227f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Damian Hobson-Garcia <dhobsong@igel.co.jp> | ||
| 3 | Date: Wed, 16 Dec 2020 11:08:25 +0900 | ||
| 4 | Subject: [PATCH] texturator: Use correct GL extension header | ||
| 5 | |||
| 6 | gl2ext.h is the extenstion header for OpenGL ES 2.0 and all later | ||
| 7 | versions according to the Khronos documentation [1]. gl3ext.h is either | ||
| 8 | an empty stub, or may not even exist on some platforms. | ||
| 9 | |||
| 10 | [1]: https://www.khronos.org/registry/OpenGL/index_es.php#headers | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/kmscube/-/merge_requests/26] | ||
| 13 | Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> | ||
| 14 | --- | ||
| 15 | texturator.c | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/texturator.c b/texturator.c | ||
| 19 | index d9335d7..6d97856 100644 | ||
| 20 | --- a/texturator.c | ||
| 21 | +++ b/texturator.c | ||
| 22 | @@ -30,7 +30,7 @@ | ||
| 23 | #include <math.h> | ||
| 24 | |||
| 25 | #include <GLES3/gl3.h> | ||
| 26 | -#include <GLES3/gl3ext.h> | ||
| 27 | +#include <GLES2/gl2ext.h> | ||
| 28 | |||
| 29 | #ifdef HAVE_LIBPNG | ||
| 30 | #include <png.h> | ||
| 31 | -- | ||
| 32 | 2.33.1 | ||
| 33 | |||
diff --git a/meta/recipes-graphics/kmscube/kmscube_git.bb b/meta/recipes-graphics/kmscube/kmscube_git.bb index f4e6cd41e7..efaa962704 100644 --- a/meta/recipes-graphics/kmscube/kmscube_git.bb +++ b/meta/recipes-graphics/kmscube/kmscube_git.bb | |||
| @@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=8b309d4ee67b7315 | |||
| 12 | 12 | ||
| 13 | SRCREV = "9f63f359fab1b5d8e862508e4e51c9dfe339ccb0" | 13 | SRCREV = "9f63f359fab1b5d8e862508e4e51c9dfe339ccb0" |
| 14 | SRC_URI = "git://gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https" | 14 | SRC_URI = "git://gitlab.freedesktop.org/mesa/kmscube;branch=master;protocol=https" |
| 15 | SRC_URI += "file://0001-texturator-Use-correct-GL-extension-header.patch" | ||
| 15 | UPSTREAM_CHECK_COMMITS = "1" | 16 | UPSTREAM_CHECK_COMMITS = "1" |
| 16 | 17 | ||
| 17 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
