package/mesa3d: fix EGL/GLES provider
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 30 Mar 2014 00:02:48 +0000 (01:02 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 30 Mar 2014 09:31:08 +0000 (11:31 +0200)
mesa3d being selected is not enough for it to be an EGL provider.

The corresponding options BR2_PACKAGE_MESA3D_OPENGL_EGL should be
enabled. This option already correctlt selects BR2_PACKAGE_HAS_OPENGL_EGL.

So, only declare mesa3d as an EGL provider if the option is set.

Ditto for GLES.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <berndkuhls@hotmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mesa3d/Config.in

index 217528bcf87e932a28992b5a1a0d6c0951b7b278..8ed0c07a563f54c37b694ecd564cf1c86de35aa2 100644 (file)
@@ -107,10 +107,10 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES
 endmenu
 
 config BR2_PACKAGE_PROVIDES_OPENGL_EGL
-       default "mesa3d"
+       default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL
 
 config BR2_PACKAGE_PROVIDES_OPENGL_ES
-       default "mesa3d"
+       default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES
 
 endif