Add agl-drm-lease feature
[AGL/meta-agl-devel.git] / meta-agl-drm-lease / recipes-graphics / kmscube / kmscube / 0001-texturator-Use-correct-GL-extension-header.patch
1 From afe70b04556be4840e7fe74d7601946ade8fdbfa 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  texturator.c | 2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/texturator.c b/texturator.c
16 index d9335d7..6d97856 100644
17 --- a/texturator.c
18 +++ b/texturator.c
19 @@ -30,7 +30,7 @@
20  #include <math.h>
21  
22  #include <GLES3/gl3.h>
23 -#include <GLES3/gl3ext.h>
24 +#include <GLES2/gl2ext.h>
25  
26  #ifdef HAVE_LIBPNG
27  #include <png.h>
28 -- 
29 2.17.1
30