From: Ian Romanick Date: Tue, 7 Aug 2012 16:58:55 +0000 (-0700) Subject: dri_util: Compare against the correct API enums X-Git-Tag: accepted/2.0alpha-wayland/20121114.171706~605 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c445bb618479adceb9243098fc20bebac4eecc7;p=profile%2Fivi%2Fmesa.git dri_util: Compare against the correct API enums Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index d28f774..86409dd 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -244,8 +244,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;