summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/kmscube/kmscube/0001-cube-gears-Change-header-file-to-GLES3-gl3.h.patch
blob: f8608d46769974fa227fc7c9872be9815be47fb9 (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
31
From 5f54f067da7ee24a61d6cb41e0636383729e2bad Mon Sep 17 00:00:00 2001
From: Fabio Estevam <festevam@gmail.com>
Date: Mon, 8 Jan 2024 15:00:01 -0300
Subject: [PATCH] cube-gears: Change header file to <GLES3/gl3.h>

Since commit 96d63eb59e34 ("kmscube: Add gears mode"), kmscube fails
to build on platforms without <GL/gl.h>.

Fix it by changing the header file to <GLES3/gl3.h>.

Reported-by: Martin Jansa <martin.jansa@gmail.com>
Suggested-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/kmscube/-/merge_requests/51]
---
 cube-gears.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cube-gears.c b/cube-gears.c
index d5b7a5f..cb538ec 100644
--- a/cube-gears.c
+++ b/cube-gears.c
@@ -31,7 +31,7 @@
 #include <sys/time.h>
 #include <math.h>
 
-#include <GL/gl.h>
+#include <GLES3/gl3.h>
 
 #include "common.h"
 #include "esUtil.h"