[meta-freescale] [meta-fsl-arm][PATCH 10/12] mesa-demos: Include patch to add extension header

Neena Busireddy neena.busireddy at freescale.com
Wed Aug 27 12:33:38 PDT 2014


This is the fix for the new OpenGL ES 1.1 header from
khronos.org. The change moved some definitions to
extension header.

Signed-off-by: Neena Busireddy <neena.busireddy at freescale.com>
---
 .../mesa/mesa-demos/fix-clear-build-break.patch    |   17 +++++++++++++++++
 recipes-graphics/mesa/mesa-demos_%.bbappend        |    3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch

diff --git a/recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch b/recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch
new file mode 100644
index 0000000..eb541d6
--- /dev/null
+++ b/recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch
@@ -0,0 +1,17 @@
+mesa-demos:  Add extension header to fix build break now that gl1 is removed
+
+Upstream Status: Pending
+
+diff --git a/src/egl/opengles1/clear.c b/src/egl/opengles1/clear.c
+index 9fe1b5291e1905fd6fe572063ed707d59ce45a81..ca9954a21b5f475709dbdef07f90b900962fcbc7 100644
+--- a/src/egl/opengles1/clear.c
++++ b/src/egl/opengles1/clear.c
+@@ -34,7 +34,7 @@
+ #include <stdio.h>
+ #include <EGL/egl.h>
+ #include <GLES/gl.h>
+-
++#include <GLES/glext.h>
+ #include "eglut.h"
+ 
+ typedef void (GL_APIENTRY *type_ClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend
index 221a3c0..9f675a2 100644
--- a/recipes-graphics/mesa/mesa-demos_%.bbappend
+++ b/recipes-graphics/mesa/mesa-demos_%.bbappend
@@ -1,5 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch"
+SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \
+                       file://fix-clear-build-break.patch"
 
 PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
-- 
1.7.9.5



More information about the meta-freescale mailing list