From aa139a14ba7279f908da523522cb9ec0578b1ea0 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 10 Nov 2010 23:54:45 +0800 Subject: egl_dri2: Fix __DRI_DRI2 version 1 support. Correctly set __DRI_API_OPENGL flag. --- src/egl/drivers/dri2/egl_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3