cjson: bump to version 1.4.3
[buildroot-gz.git] / package / kodi-visualisation-shadertoy / 0001-FindOpenGLES2-also-search-for-egl-with-pkg-config.patch
blob6737296fe7472c1b9b4caff5457a640de95bff08
1 From 9c428c3c9f120a11468f98546bcc754d2c3302af Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 30 Jul 2015 10:02:15 +0200
4 Subject: [PATCH] FindOpenGLES2: also search for egl with pkg-config
6 The non-pkg-config path looks for both EGL *and* OpenGL ES, but not
7 the pkg-config path, which might lead to missing libraries/headers if
8 egl.pc has more header paths or libraries than glesv2.pc.
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12 CMakeLists.txt | 2 +-
13 FindOpenGLES2.cmake | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/CMakeLists.txt b/CMakeLists.txt
17 index 8b084cf..81bbe27 100644
18 --- a/CMakeLists.txt
19 +++ b/CMakeLists.txt
20 @@ -35,7 +35,7 @@
21 endif()
22 endif()
24 - include_directories(${OpenGL_INCLUDE_DIR}
25 + include_directories(${OpenGL_INCLUDE_DIR} ${OpenGLES2_INCLUDE_DIRS}
26 ${GLEW_INCLUDE_DIR}
27 ${KODI_INCLUDE_DIR}
28 ${platform_INCLUDE_DIRS}
29 diff --git a/FindOpenGLES2.cmake b/FindOpenGLES2.cmake
30 index e1b7d21..2a9ce0d 100644
31 --- a/FindOpenGLES2.cmake
32 +++ b/FindOpenGLES2.cmake
33 @@ -7,7 +7,7 @@
35 find_package(PkgConfig)
36 if(PKG_CONFIG_FOUND)
37 - pkg_check_modules(OpenGLES2 glesv2)
38 + pkg_check_modules(OpenGLES2 glesv2 egl)
39 endif(PKG_CONFIG_FOUND)
41 if(NOT OPENGLES2_FOUND)
42 --
43 2.5.0