[PATCH weston v2 5/5] gl-renderer: Accept non-NULL empty <visual_id> arrays

Pekka Paalanen ppaalanen at gmail.com
Mon Nov 7 15:12:36 UTC 2016


On Wed, 18 May 2016 17:48:47 +0200
"Miguel A. Vico" <mvicomoya at nvidia.com> wrote:

> This change modifies egl_choose_config() to accept a non-NULL but empty
> <visual_id> array (i.e. n_ids == 0)
> 
> Signed-off-by: Miguel A Vico Moya <mvicomoya at nvidia.com>
> Reviewed-by: Andy Ritger <aritger at nvidia.com>
> Reviewed-by: James Jones <jajones at nvidia.com>
> ---
>  src/gl-renderer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gl-renderer.c b/src/gl-renderer.c
> index 2e24271..3de14e2 100644
> --- a/src/gl-renderer.c
> +++ b/src/gl-renderer.c
> @@ -2493,7 +2493,7 @@ egl_choose_config(struct gl_renderer *gr, const EGLint *attribs,
>  		goto out;
>  	}
>  
> -	if (!visual_id)
> +	if (!visual_id || n_ids == 0)
>  		config_index = 0;
>  
>  	for (i = 0; config_index == -1 && i < n_ids; i++)

Hi

All 5 patches pushed:
   9c526e0..967b6bc  master -> master

I did a bit of rebasing and removed commit message notes about
EGLDevice/EGLOutput.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20161107/ce9b108b/attachment.sig>


More information about the wayland-devel mailing list