[Mesa-dev] [PATCH 01/10] dri_util: Compare against the correct API enums

Kenneth Graunke kenneth at whitecape.org
Sun Aug 12 15:34:03 PDT 2012


On 08/08/2012 10:57 AM, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/mesa/drivers/dri/common/dri_util.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
> index 025a14a..9f031f5 100644
> --- a/src/mesa/drivers/dri/common/dri_util.c
> +++ b/src/mesa/drivers/dri/common/dri_util.c
> @@ -243,8 +243,8 @@ dri2CreateContextAttribs(__DRIscreen *screen, int api,
>       * anything specific about this case.  However, none of the known flags
>       * have any meaning in an ES context, so this seems safe.
>       */
> -    if (mesa_api != __DRI_API_OPENGL
> -        && mesa_api != __DRI_API_OPENGL_CORE
> +    if (mesa_api != API_OPENGL
> +        && mesa_api != API_OPENGL_CORE
>          && flags != 0) {
>  	*error = __DRI_CTX_ERROR_BAD_FLAG;
>  	return NULL;

This series of 10 patches are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

Nice to see support in EGL for creating modern desktop contexts.



More information about the mesa-dev mailing list