]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa-demos: Include patch to add extension header
authorNeena Busireddy <neena.busireddy@freescale.com>
Tue, 26 Aug 2014 19:44:17 +0000 (14:44 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 10 Nov 2014 20:55:23 +0000 (18:55 -0200)
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@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch [new file with mode: 0644]
meta-fsl-arm/recipes-graphics/mesa/mesa-demos_%.bbappend

diff --git a/meta-fsl-arm/recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch b/meta-fsl-arm/recipes-graphics/mesa/mesa-demos/fix-clear-build-break.patch
new file mode 100644 (file)
index 0000000..eb541d6
--- /dev/null
@@ -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);
index 221a3c08fb2cef66ee1e221537c0c09188389471..9f675a25be09c5607d06a574cbb2e10ac96643f5 100644 (file)
@@ -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"