]> code.ossystems Code Review - openembedded-core.git/commit
libsdl2: require GLES when building Wayland support
authorRoss Burton <ross.burton@intel.com>
Wed, 11 Nov 2015 13:40:13 +0000 (13:40 +0000)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Dec 2015 07:03:14 +0000 (23:03 -0800)
commit0f7f15ed02ec0f7b08b9ef62f6eca6c0c1e5a73f
treef8bc5e4586add17c5872741f3c6071a9792476bd
parent7d45881da23dca70334400f556ed198126190cea
libsdl2: require GLES when building Wayland support

The Wayland support requires GLES2 to be enabled as otherwise the EGL support
code in SDL2 isn't enabled.

| In file included from .../SDL2-2.0.3/src/video/wayland/SDL_waylandvideo.c:34:0:
| .../SDL2-2.0.3/src/video/wayland/SDL_waylandvideo.c: In function 'Wayland_CreateDevice':
| .../SDL2-2.0.3/src/video/wayland/SDL_waylandopengles.h:38:38: error: 'SDL_EGL_GetSwapInterval' undeclared (first use in this function)
|  #define Wayland_GLES_GetSwapInterval SDL_EGL_GetSwapInterval

Solve this by adding gles2 to the Wayland PACKAGECONFIG option.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb