[PATCH] glamor: explicitly check for GL_OES_EGL_image

Michel Dänzer michel at daenzer.net
Thu Sep 17 07:45:53 PDT 2015


On 16.09.2015 17:10, Emil Velikov wrote:
> Otherwise we'll fail miserably later on as we try to use
> glEGLImageTargetTexture2DOES.
> 
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  glamor/glamor.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/glamor/glamor.c b/glamor/glamor.c
> index d4a0236..8178785 100644
> --- a/glamor/glamor.c
> +++ b/glamor/glamor.c
> @@ -545,6 +545,11 @@ glamor_init(ScreenPtr screen, unsigned int flags)
>          }
>      }
>  
> +    if (!epoxy_has_gl_extension("GL_OES_EGL_image")) {
> +        ErrorF("GL_OES_EGL_image not available\n");
> +        goto fail;
> +    }
> +
>      glamor_priv->has_rw_pbo = FALSE;
>      if (glamor_priv->gl_flavor == GLAMOR_GL_DESKTOP)
>          glamor_priv->has_rw_pbo = TRUE;
> 

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the xorg-devel mailing list