dri_util: Compare against the correct API enums
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Aug 2012 16:58:55 +0000 (09:58 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Aug 2012 22:41:02 +0000 (15:41 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/common/dri_util.c

index d28f774dd63b3edac4138527e4394ff08392dc83..86409dd068967a1cfbb86c4abc10f6fe9a21ec87 100644 (file)
@@ -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;