Mesa (master): dri_util: Compare against the correct API enums

Ian Romanick idr at kemper.freedesktop.org
Tue Aug 14 22:49:27 UTC 2012


Module: Mesa
Branch: master
Commit: 0c445bb618479adceb9243098fc20bebac4eecc7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c445bb618479adceb9243098fc20bebac4eecc7

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Tue Aug  7 09:58:55 2012 -0700

dri_util: Compare against the correct API enums

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 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 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;




More information about the mesa-commit mailing list