From b0ba8d6f807543d461272833a76059fed8a4d6e9 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Tue, 18 May 2010 17:14:47 +0200 Subject: st/xorg: Don't advertise DRI2 version we don't actually support yet. Fixes DRI2 initialization with current xserver Git. --- src/gallium/state_trackers/xorg/xorg_dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/xorg/xorg_dri2.c b/src/gallium/state_trackers/xorg/xorg_dri2.c index b90f9c908d2..921b6900fcd 100644 --- a/src/gallium/state_trackers/xorg/xorg_dri2.c +++ b/src/gallium/state_trackers/xorg/xorg_dri2.c @@ -403,7 +403,7 @@ xorg_dri2_init(ScreenPtr pScreen) } #endif - dri2info.version = DRI2INFOREC_VERSION; + dri2info.version = min(DRI2INFOREC_VERSION, 3); dri2info.fd = ms->fd; dri2info.driverName = pScrn->driverName; -- cgit v1.2.3