summaryrefslogtreecommitdiffstats
path: root/meta-agl-drm-lease/recipes-graphics/kmscube/kmscube/0001-texturator-Use-correct-GL-extension-header.patch
blob: d6050778ba049626116abe6decdfc44cc6f7b4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From afe70b04556be4840e7fe74d7601946ade8fdbfa Mon Sep 17 00:00:00 2001
From: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Date: Wed, 16 Dec 2020 11:08:25 +0900
Subject: [PATCH] texturator: Use correct GL extension header

gl2ext.h is the extenstion header for OpenGL ES 2.0 and all later
versions according to the Khronos documentation [1].  gl3ext.h is either
an empty stub, or may not even exist on some platforms.

[1]: https://www.khronos.org/registry/OpenGL/index_es.php#headers
---
 texturator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/texturator.c b/texturator.c
index d9335d7..6d97856 100644
--- a/texturator.c
+++ b/texturator.c
@@ -30,7 +30,7 @@
 #include <math.h>
 
 #include <GLES3/gl3.h>
-#include <GLES3/gl3ext.h>
+#include <GLES2/gl2ext.h>
 
 #ifdef HAVE_LIBPNG
 #include <png.h>
-- 
2.17.1