From: Chia-I Wu Date: Wed, 10 Nov 2010 15:54:45 +0000 (+0800) Subject: egl_dri2: Fix __DRI_DRI2 version 1 support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa139a14ba7279f908da523522cb9ec0578b1ea0;p=mesa.git egl_dri2: Fix __DRI_DRI2 version 1 support. Correctly set __DRI_API_OPENGL flag. --- diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 20862e41af4..6db44c7aa87 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -750,7 +750,7 @@ dri2_create_screen(_EGLDisplay *disp) if (dri2_dpy->dri2->base.version >= 2) api_mask = dri2_dpy->dri2->getAPIMask(dri2_dpy->dri_screen); else - api_mask = __DRI_API_OPENGL; + api_mask = 1 << __DRI_API_OPENGL; disp->ClientAPIsMask = 0; if (api_mask & (1 <<__DRI_API_OPENGL))